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:
@ -258,6 +258,8 @@ int sqlite3Fts5ExprNew(
|
||||
pNew->nPhrase = sParse.nPhrase;
|
||||
sParse.apPhrase = 0;
|
||||
}
|
||||
}else{
|
||||
sqlite3Fts5ParseNodeFree(sParse.pExpr);
|
||||
}
|
||||
|
||||
sqlite3_free(sParse.apPhrase);
|
||||
|
Reference in New Issue
Block a user