summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-01-05 21:46:38 +0100
committerHaruna <haru@dotalux.com>2015-01-05 21:46:38 +0100
commit193c31060476ad127008267766a8bfc1bdaeffd0 (patch)
treea5216840e10e944ba6d9ab4d9cc0c6cab42626ab /src
parent095aaf5d3a6b108b59cb98b3c63ad836be65a4ed (diff)
parente9765745c1d626210af4020c723f8aa2b1c6c21e (diff)
downloadhercules-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.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);
}
}