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

Fix a memory leak in fts5 that could occur following a syntax error in a query expression.

FossilOrigin-Name: 54b8968e335760105206b894672213c1d56771a4
This commit is contained in:
dan
2016-03-14 12:16:23 +00:00
parent 5cf98f101e
commit 7d85774da8
4 changed files with 16 additions and 10 deletions

View File

@ -258,6 +258,8 @@ int sqlite3Fts5ExprNew(
pNew->nPhrase = sParse.nPhrase;
sParse.apPhrase = 0;
}
}else{
sqlite3Fts5ParseNodeFree(sParse.pExpr);
}
sqlite3_free(sParse.apPhrase);