diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-05 00:52:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-05 00:52:01 +0300 |
commit | e9765745c1d626210af4020c723f8aa2b1c6c21e (patch) | |
tree | 428975b2ac760253243052b156a66b94dcda1f4b | |
parent | 3dc29e4a4ecdc2f474223461bd18d5beabcd9994 (diff) | |
download | hercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.tar.gz hercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.tar.bz2 hercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.tar.xz hercules-e9765745c1d626210af4020c723f8aa2b1c6c21e.zip |
Fix memory leak after closing mysql connection.
-rw-r--r-- | src/common/sql.c | 1 |
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); } } |