Date: Friday, December 30, 2005 @ 18:23:40
Author: gilles
Path: /cvsroot/carob/carob/src
Modified: Connection.cpp (1.47 -> 1.48)
Fixed missing delete before throwing exception
----------------+
Connection.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: carob/src/Connection.cpp
diff -u carob/src/Connection.cpp:1.47 carob/src/Connection.cpp:1.48
--- carob/src/Connection.cpp:1.47 Fri Dec 30 11:38:24 2005
+++ carob/src/Connection.cpp Fri Dec 30 18:23:40 2005
@@ -114,6 +114,9 @@
}
catch (SocketIOException sockIOExcpt)
{
+ // at this point, driverSocketPtr has been allocated. Destroy it
+ delete driverSocketPtr;
+
wstring msg = L"Could not authentify to " + prms.getHostName()
+ L":" + toWString((int)prms.getHostPort());
if (!protocolVersionSend)
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits