diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2002-07-27 21:17:15 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2002-07-27 21:17:15 (GMT) |
| commit | 04adae705b9ee3fc893fb4523f9407c3dad41afc (patch) | |
| tree | cb965fc75a17eef5cfaf3eb1b7730a141846e262 | |
| parent | c141e72b3075795a5890d370be1e698b0dfd568b (diff) | |
| download | tcl-04adae705b9ee3fc893fb4523f9407c3dad41afc.zip tcl-04adae705b9ee3fc893fb4523f9407c3dad41afc.tar.gz tcl-04adae705b9ee3fc893fb4523f9407c3dad41afc.tar.bz2 | |
* generic/tclExecute.c: fixed Tcl_Obj leak in code corresponding
to the macro NEXT_INST_V(x, 0, 1) [Bug 587495].
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | generic/tclExecute.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2002-07-26 Miguel Sofer <msofer@users.sourceforge.net> + * generic/tclExecute.c: fixed Tcl_Obj leak in code corresponding + to the macro NEXT_INST_V(x, 0, 1) [Bug 587495]. + +2002-07-26 Miguel Sofer <msofer@users.sourceforge.net> + * generic/tclVar.c (TclObjLookupVar): leak fix and improved comments. diff --git a/generic/tclExecute.c b/generic/tclExecute.c index a74a333..b4e4f3b 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -11,7 +11,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.84 2002/07/26 18:51:02 msofer Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.85 2002/07/27 21:17:15 msofer Exp $ */ #include "tclInt.h" @@ -1137,7 +1137,7 @@ TclExecuteByteCode(interp, codePtr) cleanupV_pushObjResultPtr: switch (cleanup) { case 0: - PUSH_OBJECT(objResultPtr); + stackPtr[++stackTop] = (objResultPtr); goto cleanup0; default: cleanup -= 2; |
