aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeblob.c
diff options
context:
space:
mode:
authordrh <>2023-10-07 11:37:00 +0000
committerdrh <>2023-10-07 11:37:00 +0000
commit502b11c6d37aaf08b510467a8b7479dca5f3e9db (patch)
tree8e0e36122592dfdc7392c6217e0d023b80ea7e9f /src/vdbeblob.c
parentbae197c175d8e58bfccd873e29d3c2d722f6b2ae (diff)
parent8f0634549cd10a0b5673b674998501b00963e210 (diff)
downloadsqlite-502b11c6d37aaf08b510467a8b7479dca5f3e9db.tar.gz
sqlite-502b11c6d37aaf08b510467a8b7479dca5f3e9db.zip
Merge the memory leak fix from trunk.
FossilOrigin-Name: 358de1b09f3d5ec0fe459775b0a2a99dfa235817327016b472aaa1ed56d952e6
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r--src/vdbeblob.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c
index 32987da13..ea6f016e3 100644
--- a/src/vdbeblob.c
+++ b/src/vdbeblob.c
@@ -59,8 +59,7 @@ static int blobSeekToRow(Incrblob *p, sqlite3_int64 iRow, char **pzErr){
/* Set the value of register r[1] in the SQL statement to integer iRow.
** This is done directly as a performance optimization
*/
- v->aMem[1].flags = MEM_Int;
- v->aMem[1].u.i = iRow;
+ sqlite3VdbeMemSetInt64(&v->aMem[1], iRow);
/* If the statement has been run before (and is paused at the OP_ResultRow)
** then back it up to the point where it does the OP_NotExists. This could