diff options
author | Haruna <haru@dotalux.com> | 2015-01-05 21:46:38 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2015-01-05 21:46:38 +0100 |
commit | 193c31060476ad127008267766a8bfc1bdaeffd0 (patch) | |
tree | a5216840e10e944ba6d9ab4d9cc0c6cab42626ab /src | |
parent | 095aaf5d3a6b108b59cb98b3c63ad836be65a4ed (diff) | |
parent | e9765745c1d626210af4020c723f8aa2b1c6c21e (diff) | |
download | hercules-193c31060476ad127008267766a8bfc1bdaeffd0.tar.gz hercules-193c31060476ad127008267766a8bfc1bdaeffd0.tar.bz2 hercules-193c31060476ad127008267766a8bfc1bdaeffd0.tar.xz hercules-193c31060476ad127008267766a8bfc1bdaeffd0.zip |
Merge pull request #436 from 4144/mysqlleak
Fix memory leak after closing mysql connection.
Diffstat (limited to 'src')
-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); } } |