Date: Tuesday, December 6, 2005 @ 17:44:13
Author: gilles
Path: /cvsroot/carob/carob/src
Modified: Connection.cpp (1.34 -> 1.35)
Added deletion of Socket pointer in destructor
----------------+
Connection.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: carob/src/Connection.cpp
diff -u carob/src/Connection.cpp:1.34 carob/src/Connection.cpp:1.35
--- carob/src/Connection.cpp:1.34 Fri Dec 2 15:53:07 2005
+++ carob/src/Connection.cpp Tue Dec 6 17:44:13 2005
@@ -29,6 +29,11 @@
Connection::~Connection()
{
close();
+ if (driverSocketPtr != NULL)
+ {
+ delete driverSocketPtr;
+ driverSocketPtr = NULL;
+ }
}
Connection::Connection(const ConnectionParameters& prms)
@@ -257,7 +262,7 @@
//now close the socket itself
closeOK &= driverSocketPtr->closeSocket();
-
+
//Release lock
connectionCS.Leave();
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits