From: Dave H. <hel...@us...> - 2015-06-21 04:33:39
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv27651/src/org/sblim/cimclient/internal/wbem Modified Files: WBEMClientCIMXML.java Log Message: 2732 HttpClient resource leak in WBEMClientCIMXML Index: WBEMClientCIMXML.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem/WBEMClientCIMXML.java,v retrieving revision 1.85 retrieving revision 1.86 diff -u -d -r1.85 -r1.86 --- WBEMClientCIMXML.java 12 Dec 2013 12:09:03 -0000 1.85 +++ WBEMClientCIMXML.java 21 Jun 2015 04:33:37 -0000 1.86 @@ -75,6 +75,7 @@ * 2651 2013-07-31 blaschke-oss IOException when tracing the cimxml * 2662 2013-09-10 blaschke-oss Need the specific SSLHandshakeException during the cim call * 2594 2013-11-30 blaschke-oss CR28: Support CIMErrorDescription HTTP field + * 2732 2015-06-21 hellerda HttpClient resource leak in WBEMClientCIMXML */ package org.sblim.cimclient.internal.wbem; @@ -1723,10 +1724,13 @@ logger.trace(Level.FINE, "Connecting..."); connection.connect(); } catch (UnknownHostException e) { + connection.disconnect(); throw new WBEMException(WBEMException.CIM_ERR_FAILED, "Unknown host", null, e); } catch (SocketException e) { + connection.disconnect(); throw new WBEMException(WBEMException.CIM_ERR_FAILED, "Unable to connect", null, e); } catch (SSLHandshakeException e) { + connection.disconnect(); throw new WBEMException(WBEMException.CIM_ERR_FAILED, "SSL handshake exception", null, e); } |