From f85ca85b4e9ec727eae258eb3918858d362dcd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 22 Dec 2015 17:37:49 +0000 Subject: [PATCH] Fix bug #449 Closes 449 --- lib/mysql_data_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql_data_stream.cpp b/lib/mysql_data_stream.cpp index 02c523c5ba..822e127d12 100644 --- a/lib/mysql_data_stream.cpp +++ b/lib/mysql_data_stream.cpp @@ -199,7 +199,7 @@ MySQL_Data_Stream::~MySQL_Data_Stream() { if (myds_type==MYDS_BACKEND || myds_type==MYDS_BACKEND_NOT_CONNECTED) { assert(myconn==NULL); } -// if ( (myconn) && (myds_type==MYDS_FRONTEND) ) { delete myconn; myconn=NULL; } + if ( (myconn) && (myds_type==MYDS_FRONTEND) ) { delete myconn; myconn=NULL; } if (encrypted) { if (ssl) SSL_free(ssl); // if (ssl_ctx) SSL_CTX_free(ssl_ctx);