summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}
}