mirror of
https://github.com/anope/anope.git
synced 2026-06-26 20:16:38 +02:00
Fixed a memory leak in m_sqlite
This commit is contained in:
@@ -175,6 +175,8 @@ SQLResult SQLiteService::RunQuery(const SQLQuery &query)
|
||||
}
|
||||
while (err == SQLITE_ROW);
|
||||
|
||||
sqlite3_finalize(stmt);
|
||||
|
||||
if (err != SQLITE_DONE)
|
||||
return SQLiteResult(query, real_query, sqlite3_errmsg(this->sql));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user