1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix a memory leak in the explain extension.

FossilOrigin-Name: d0c92b047a5355726aea87f38038e5bda3adf6137492919be94bd29bb847eddb
This commit is contained in:
drh
2018-09-16 16:34:31 +00:00
parent 9b84f03556
commit 6557a07ca8
3 changed files with 8 additions and 7 deletions

View File

@ -208,6 +208,7 @@ static int explainFilter(
rc = SQLITE_NOMEM;
}else{
rc = sqlite3_prepare_v2(pCur->db, zSql, -1, &pCur->pExplain, 0);
sqlite3_free(zSql);
}
if( rc ){
sqlite3_finalize(pCur->pExplain);