diff options
author | dgp <dgp@users.sourceforge.net> | 2016-06-23 13:18:33 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-06-23 13:18:33 (GMT) |
commit | 8bb026fed0f950dab2d7ce6600e7bde98edba550 (patch) | |
tree | 00bd5b372166a30ca67aedf245c7d49f31ea3eb7 /generic/tclExecute.c | |
parent | 9782b57e718a22de621fb4b222b4509922e77a08 (diff) | |
parent | 6a513d71d369eed56569ff3bf3e05c4f80c2ccae (diff) | |
download | tcl-8bb026fed0f950dab2d7ce6600e7bde98edba550.zip tcl-8bb026fed0f950dab2d7ce6600e7bde98edba550.tar.gz tcl-8bb026fed0f950dab2d7ce6600e7bde98edba550.tar.bz2 |
merge 8.6
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index aed6a48..355b667 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -7707,6 +7707,7 @@ TEBCresume( goto gotError; } } + Tcl_IncrRefCount(dictPtr); if (TclListObjGetElements(interp, OBJ_AT_TOS, &length, &keyPtrPtr) != TCL_OK) { TRACE_ERROR(interp); @@ -7719,6 +7720,7 @@ TEBCresume( if (Tcl_DictObjGet(interp, dictPtr, keyPtrPtr[i], &valuePtr) != TCL_OK) { TRACE_ERROR(interp); + Tcl_DecrRefCount(dictPtr); goto gotError; } varPtr = LOCAL(duiPtr->varIndices[i]); @@ -7735,10 +7737,12 @@ TEBCresume( duiPtr->varIndices[i]) == NULL) { CACHE_STACK_INFO(); TRACE_ERROR(interp); + Tcl_DecrRefCount(dictPtr); goto gotError; } CACHE_STACK_INFO(); } + TclDecrRefCount(dictPtr); TRACE_APPEND(("OK\n")); NEXT_INST_F(9, 0, 0); |