#vulnerable code 
                                public void copyObject(Container targetContainer, StoredObject targetObject) {
        new CopyObjectCommand(getAccount(), getClient(), getAccess(), this, targetObject).call();
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public void copyObject(Container targetContainer, StoredObject targetObject) {
        commandFactory.createCopyObjectCommand(getAccount(), getClient(), getAccess(), this, targetObject).call();
    }