/ Check-in [5bfb5967]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a double-free() call that can occur when SQLITE_ENABLE_TREE_EXPLAIN is defined.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5bfb5967d70433bf41d39b57506b7ec167a1b6a0
User & Date: drh 2013-01-23 18:44:22
Context
2013-01-23
18:53
Improved parsing of the arguments to the ".backup" command in the command-line shell. check-in: f1127e87 user: drh tags: trunk
18:44
Fix a double-free() call that can occur when SQLITE_ENABLE_TREE_EXPLAIN is defined. check-in: 5bfb5967 user: drh tags: trunk
2013-01-20
00:18
Fix a typo in a comment in the test_regexp.c test file. check-in: 68346af7 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  2474   2474     for(i=p->nzVar-1; i>=0; i--) sqlite3DbFree(db, p->azVar[i]);
  2475   2475     vdbeFreeOpArray(db, p->aOp, p->nOp);
  2476   2476     sqlite3DbFree(db, p->aLabel);
  2477   2477     sqlite3DbFree(db, p->aColName);
  2478   2478     sqlite3DbFree(db, p->zSql);
  2479   2479     sqlite3DbFree(db, p->pFree);
  2480   2480   #if defined(SQLITE_ENABLE_TREE_EXPLAIN)
  2481         -  sqlite3_free(p->zExplain);
         2481  +  sqlite3DbFree(db, p->zExplain);
  2482   2482     sqlite3DbFree(db, p->pExplain);
  2483   2483   #endif
  2484   2484   }
  2485   2485   
  2486   2486   /*
  2487   2487   ** Delete an entire VDBE.
  2488   2488   */