summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-19 13:44:18 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-19 13:44:18 (GMT)
commitdec3519dec2f6b56a582128de207e88db346fb7f (patch)
tree76a4c18a2f68c42e773ea28663fbb7c33b631974
parent9d75751f2147019420220fdcf98b190c771c4006 (diff)
parent0467fcff78969cf483da62fc1c7b7cb9309cf16b (diff)
downloadtcl-dec3519dec2f6b56a582128de207e88db346fb7f.zip
tcl-dec3519dec2f6b56a582128de207e88db346fb7f.tar.gz
tcl-dec3519dec2f6b56a582128de207e88db346fb7f.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 96004e2..0ca393b 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -4738,7 +4738,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;