diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclBasic.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2004-07-11 Miguel Sofer <msofer@users.sf.net> + * generic/tclBasic.c (Tcl_EvalEx): leak fix by dgp, release + objv[objectsUsed] on error. + +2004-07-11 Miguel Sofer <msofer@users.sf.net> + * generic/tclParse.c (Tcl_SubstObj): leak fix by dgp, release result on error. diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 042e22b..6e97632 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.108 2004/07/08 18:46:04 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.109 2004/07/12 01:56:12 msofer Exp $ */ #include "tclInt.h" @@ -3591,6 +3591,7 @@ Tcl_EvalEx(interp, script, numBytes, flags) Tcl_AppendToObj(msg, ")", -1); TclAppendObjToErrorInfo(interp, msg); Tcl_DecrRefCount(msg); + Tcl_DecrRefCount(objv[objectsUsed]); goto error; } expandRequested = 1; |