summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2008-08-04 18:32:29 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2008-08-04 18:32:29 (GMT)
commit904ad53bcc04a8e011a2e168389dbe29cd52fbcb (patch)
treebb9441c8052fc684634db78819a903d0e88a1524 /generic/tclExecute.c
parentf78f8e7da883b378770d2136210a8e22ffc3791e (diff)
downloadtcl-904ad53bcc04a8e011a2e168389dbe29cd52fbcb.zip
tcl-904ad53bcc04a8e011a2e168389dbe29cd52fbcb.tar.gz
tcl-904ad53bcc04a8e011a2e168389dbe29cd52fbcb.tar.bz2
fix "bad stack top" bug in last commit
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 0c77b9e..5d33e3c 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.396 2008/08/04 14:09:31 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.397 2008/08/04 18:32:29 msofer Exp $
*/
#include "tclInt.h"
@@ -1871,6 +1871,10 @@ TclExecuteByteCode(
#endif
newPtr->nextPtr = bottomPtr->atExitPtr;
bottomPtr->atExitPtr = newPtr;
+ while (cleanup--) {
+ Tcl_Obj *objPtr = POP_OBJECT();
+ Tcl_DecrRefCount(objPtr);
+ }
goto nonRecursiveCallReturn;
} else {