Index: src/vdbe.c ================================================================== --- src/vdbe.c +++ src/vdbe.c @@ -1448,11 +1448,11 @@ lastRowid = db->lastRowid; /* If any auxiliary data functions have been called by this user function, ** immediately call the destructor for any non-static values. */ - sqlite3VdbeDeleteAuxData(ppc, pc, pOp->p1); + sqlite3VdbeDeleteAuxData(p, pc, pOp->p1); if( db->mallocFailed ){ /* Even though a malloc() has failed, the implementation of the ** user function may have called an sqlite3_result_XXX() function ** to return a value. The following call releases any resources