summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2013-09-19 13:39:40 (GMT)
committerdgp@users.sourceforge.net <dgp>2013-09-19 13:39:40 (GMT)
commit54847f85a340fa88d3773539402361339313f886 (patch)
tree82c948b1e800251520a2792933baab7eb9592fc8
parent825e22dd18346fa55519a97393fb91c8919662c9 (diff)
downloadtcl-54847f85a340fa88d3773539402361339313f886.zip
tcl-54847f85a340fa88d3773539402361339313f886.tar.gz
tcl-54847f85a340fa88d3773539402361339313f886.tar.bz2
[31661d2135] Plug memory leak.
-rw-r--r--generic/tclExecute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index e402634..4d7bdd5 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -4327,7 +4327,7 @@ TEBCresume(
if (listPtr->refCount == 1) {
TRACE(("\"%.30s\" %d %d => ", O2S(valuePtr),
TclGetInt4AtPtr(pc+1), TclGetInt4AtPtr(pc+5)));
- for (index=toIdx+1 ; index<objc-1 ; index++) {
+ for (index=toIdx+1; index<objc ; index++) {
TclDecrRefCount(objv[index]);
}
listPtr->elemCount = toIdx+1;