diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-07-12 01:56:11 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-07-12 01:56:11 (GMT) |
commit | 309e395545ab2d6714e92a25d0fe3211a36a8843 (patch) | |
tree | 888ae94cdb4118b84feef26183ac558f27e4318f /generic | |
parent | 3824048c297c5067b5a813b3623378dc84a0b793 (diff) | |
download | tcl-309e395545ab2d6714e92a25d0fe3211a36a8843.zip tcl-309e395545ab2d6714e92a25d0fe3211a36a8843.tar.gz tcl-309e395545ab2d6714e92a25d0fe3211a36a8843.tar.bz2 |
* generic/tclBasic.c (Tcl_EvalEx): leak fix by dgp, release
objv[objectsUsed] on error.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclBasic.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |