summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-05 00:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-05 00:52:01 +0300
commite9765745c1d626210af4020c723f8aa2b1c6c21e (patch)
tree428975b2ac760253243052b156a66b94dcda1f4b /src
parent3dc29e4a4ecdc2f474223461bd18d5beabcd9994 (diff)
downloadhercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.tar.gz
hercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.tar.bz2
hercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.tar.xz
hercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.zip
Fix memory leak after closing mysql connection.
Diffstat (limited to 'src')
-rw-r--r--src/common/sql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/sql.c b/src/common/sql.c
index 7f89e9828..abc2ed57a 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -410,6 +410,7 @@ void Sql_Free(Sql* self) {
SQL->FreeResult(self);
StrBuf->Destroy(&self->buf);
if( self->keepalive != INVALID_TIMER ) timer->delete(self->keepalive, Sql_P_KeepaliveTimer);
+ mysql_close(&self->handle);
aFree(self);
}
}