aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2022-07-20 20:36:26 +0000
committerdrh <>2022-07-20 20:36:26 +0000
commit955301637710f18d3b44e8972f17f8cf22df4092 (patch)
treef05a8276ba18b80ba4e3fdc47a46dd63d7e22790 /src/expr.c
parent3245f3be67907a31431a4506908d981ab1354523 (diff)
downloadsqlite-955301637710f18d3b44e8972f17f8cf22df4092.tar.gz
sqlite-955301637710f18d3b44e8972f17f8cf22df4092.zip
Make use of the sqlite3ExprDeferredDelete() interface in the previous
check-in, and in another place where it might be helpful. FossilOrigin-Name: 22f90e9683d5cd6619ccdb06a02e9dde9f4b7457391c0dbb4c3216c22fc0db47
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index c0b2bee94..61b1d60e4 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -3325,7 +3325,7 @@ int sqlite3CodeSubselect(Parse *pParse, Expr *pExpr){
pLimit = sqlite3PExpr(pParse, TK_NE,
sqlite3ExprDup(db, pSel->pLimit->pLeft, 0), pLimit);
}
- sqlite3ExprDelete(db, pSel->pLimit->pLeft);
+ sqlite3ExprDeferredDelete(pParse, pSel->pLimit->pLeft);
pSel->pLimit->pLeft = pLimit;
}else{
/* If there is no pre-existing limit add a limit of 1 */