aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeaux.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2020-05-16 15:18:27 +0000
committerdan <dan@noemail.net>2020-05-16 15:18:27 +0000
commit62c94d0afe91f22fc1777ceadbc55f0ff2c941a9 (patch)
treebaa5a41c98c86e283ccb757d796477764769d28a /src/vdbeaux.c
parentb2c6fe225ae5467478658a5dc32fe50b063f7419 (diff)
downloadsqlite-62c94d0afe91f22fc1777ceadbc55f0ff2c941a9.tar.gz
sqlite-62c94d0afe91f22fc1777ceadbc55f0ff2c941a9.zip
Add sqlite3BeginBenignMalloc() and EndBenignMalloc() calls to debugging function sqlite3VdbePrintOp().
FossilOrigin-Name: 6f857d0e9e0893524c2f828a1a1600fefb6efeff12ecbc9bb1da106a5aff9c1c
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r--src/vdbeaux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 5be81a352..38dc7cd86 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -1836,6 +1836,7 @@ void sqlite3VdbePrintOp(FILE *pOut, int pc, VdbeOp *pOp){
sqlite3 dummyDb;
static const char *zFormat1 = "%4d %-13s %4d %4d %4d %-13s %.2X %s\n";
if( pOut==0 ) pOut = stdout;
+ sqlite3BeginBenignMalloc();
dummyDb.mallocFailed = 1;
zP4 = sqlite3VdbeDisplayP4(&dummyDb, pOp);
#ifdef SQLITE_ENABLE_EXPLAIN_COMMENTS
@@ -1854,6 +1855,7 @@ void sqlite3VdbePrintOp(FILE *pOut, int pc, VdbeOp *pOp){
fflush(pOut);
sqlite3_free(zP4);
sqlite3_free(zCom);
+ sqlite3EndBenignMalloc();
}
#endif