1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix a memory leak in the update_hook method of the TCL interface.

FossilOrigin-Name: 1d17e3dc832d789c3665e240dac5019fc4f9c18b
This commit is contained in:
drh
2010-10-27 15:36:21 +00:00
parent 76de8a750a
commit efdde169f6
3 changed files with 19 additions and 8 deletions

View File

@@ -670,6 +670,7 @@ static void DbUpdateHandler(
Tcl_ListObjAppendElement(0, pCmd, Tcl_NewStringObj(zTbl, -1));
Tcl_ListObjAppendElement(0, pCmd, Tcl_NewWideIntObj(rowid));
Tcl_EvalObjEx(pDb->interp, pCmd, TCL_EVAL_DIRECT);
Tcl_DecrRefCount(pCmd);
}
static void tclCollateNeeded(