1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix a double-free of the FROM clause of an UPDATE inside of triggers.

FossilOrigin-Name: 706c8da2f6d9299f0ad3b3c93332b38071e8e88b4d1660c1841309919b64fd18
This commit is contained in:
drh
2020-07-16 02:36:24 +00:00
parent 6265c47a1a
commit b866a65d4d
3 changed files with 7 additions and 9 deletions

View File

@@ -512,8 +512,6 @@ TriggerStep *sqlite3TriggerUpdateStep(
pTriggerStep->pFrom = sqlite3SrcListDup(db, pFrom, EXPRDUP_REDUCE);
}
pTriggerStep->orconf = orconf;
}else{
sqlite3SrcListDelete(db, pFrom);
}
sqlite3ExprListDelete(db, pEList);
sqlite3ExprDelete(db, pWhere);