summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tclExecute.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index c6cea08..3a75d88 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -2736,9 +2736,6 @@ TclExecuteByteCode(interp, codePtr)
if (oldValuePtr == NULL) {
iterVarPtr->value.objPtr = Tcl_NewLongObj(-1);
Tcl_IncrRefCount(iterVarPtr->value.objPtr);
- if (oldValuePtr != NULL) {
- Tcl_DecrRefCount(oldValuePtr);
- }
} else {
Tcl_SetLongObj(oldValuePtr, -1);
}