summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclBasic.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 04fae88..65b57c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;