From e9765745c1d626210af4020c723f8aa2b1c6c21e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Jan 2015 00:52:01 +0300 Subject: Fix memory leak after closing mysql connection. --- src/common/sql.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); } } -- cgit v1.2.3-60-g2f50