summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2004-07-12 01:56:11 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2004-07-12 01:56:11 (GMT)
commit309e395545ab2d6714e92a25d0fe3211a36a8843 (patch)
tree888ae94cdb4118b84feef26183ac558f27e4318f /generic
parent3824048c297c5067b5a813b3623378dc84a0b793 (diff)
downloadtcl-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.c3
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;