Kaydet (Commit) 29a479c3 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1371379 Resource leak on an exceptional path

Change-Id: I0e26dfe610aa7e2cb5eb292aca239ba5e1ad34d9
üst 2e333bcf
......@@ -154,6 +154,10 @@ public final class socketConnector implements XConnector {
con = new SocketConnection(connectionDescription, socket);
} catch (IOException e) {
try {
socket.close();
} catch(IOException ioException) {
}
throw new NoConnectException(e);
}
connected = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment