diff options
author | drh <> | 2022-04-04 01:12:11 +0000 |
---|---|---|
committer | drh <> | 2022-04-04 01:12:11 +0000 |
commit | 1c8486301f53137c73b19b83f1cb0def51f198ab (patch) | |
tree | 23939f1893ca65757a0a66282490fe6927ce497f /src/vdbeapi.c | |
parent | 8703edd3e9c10a687e1bf9f95901bca24c3a6881 (diff) | |
download | sqlite-1c8486301f53137c73b19b83f1cb0def51f198ab.tar.gz sqlite-1c8486301f53137c73b19b83f1cb0def51f198ab.zip |
Only invoke sqlite3VdbeClearObject() from a single location, so that the
compiler is more likely to in-line the code. Performance increase and
size reduction.
FossilOrigin-Name: c6947a96e61f71aa61ca3d70d9e2612d784ab04d60fa88852b03cfce86b1bf2b
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r-- | src/vdbeapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c index 9a5d01682..39d73288c 100644 --- a/src/vdbeapi.c +++ b/src/vdbeapi.c @@ -1835,8 +1835,7 @@ int sqlite3_stmt_status(sqlite3_stmt *pStmt, int op, int resetFlag){ sqlite3_mutex_enter(db->mutex); v = 0; db->pnBytesFreed = (int*)&v; - sqlite3VdbeClearObject(db, pVdbe); - sqlite3DbFree(db, pVdbe); + sqlite3VdbeDelete(pVdbe); db->pnBytesFreed = 0; sqlite3_mutex_leave(db->mutex); }else{ |