#vulnerable code 
                                public void makePublic() {
        new ContainerRightsCommand(getAccount(), getClient(), getAccess(), this, true).call();
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public void makePublic() {
        commandFactory.createContainerRightsCommand(getAccount(), getClient(), getAccess(), this, true).call();
    }