VirtualBox

Changeset 22339 in vbox


Ignore:
Timestamp:
Aug 19, 2009 10:29:37 AM (15 years ago)
Author:
vboxsync
Message:

JAX-WS: fix memory leak if logoff() throws an exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/glue-jaxws.xsl

    r22142 r22339  
    759759    public void disconnect(IVirtualBox refIVirtualBox)
    760760    {
    761         logoff(refIVirtualBox);
    762         pool.releasePort(this.port);
     761        try {
     762           logoff(refIVirtualBox);
     763        } finally {
     764           if (this.port != null) {
     765             pool.releasePort(this.port);
     766             this.port = null;
     767           }
     768        }
    763769    }
    764770
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette