aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-02-28 02:35:48 +0000
committerdrh <>2022-02-28 02:35:48 +0000
commitb3d981c3b740755dba418024da2a8de1d825ed92 (patch)
tree30c76c1eb9f3c3830b5abceeb12cd938f6f0152d /src
parentf357cafaf50290fe2264ea87312d38dddc89befd (diff)
downloadsqlite-b3d981c3b740755dba418024da2a8de1d825ed92.tar.gz
sqlite-b3d981c3b740755dba418024da2a8de1d825ed92.zip
Avoid unnecessary deinitialization of the Mem.flags field.
FossilOrigin-Name: bb520293d8c11518ba153b986662f081ebfd781d38eb624c509605fa9148f6e9
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 650225d30..dea71a3c9 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -1889,8 +1889,9 @@ static void releaseMemArray(Mem *p, int N){
sqlite3DbFreeNN(db, p->zMalloc);
p->szMalloc = 0;
}
-
+#ifdef SQLITE_DEBUG
p->flags = MEM_Undefined;
+#endif
}while( (++p)<pEnd );
}
}