summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-04-14 16:25:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-04-14 16:25:45 (GMT)
commitac208e8e219affa0af313b39b698d674a635b96b (patch)
treeb51061f240e012eecdf8658074dc470d0c11f0b0
parentb10ba1e4ca0837b84a2b9d45c7001b2b280bd4d4 (diff)
downloadtcl-ac208e8e219affa0af313b39b698d674a635b96b.zip
tcl-ac208e8e219affa0af313b39b698d674a635b96b.tar.gz
tcl-ac208e8e219affa0af313b39b698d674a635b96b.tar.bz2
* generic/tclExecute.c: Plug memory leak introduced in the
2008-03-07 commit. [Bug 1940433]
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclExecute.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 10406a0..a9c3993 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-14 Don Porter <dgp@users.sourceforge.net>
+
+ * generic/tclExecute.c: Plug memory leak introduced in the
+ 2008-03-07 commit. [Bug 1940433]
+
2008-04-11 Don Porter <dgp@users.sourceforge.net>
*** 8.4.19 TAGGED FOR RELEASE ***
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 5bf2fd7..b94785d 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.94.2.24 2008/03/10 14:34:33 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.94.2.25 2008/04/14 16:25:49 dgp Exp $
*/
#include "tclInt.h"
@@ -827,7 +827,7 @@ Tcl_ExprObj(interp, objPtr, resultPtrPtr)
auxDataPtr++;
}
TclFreeCompileEnv(&compEnv);
- return result;
+ goto done;
}
/*
@@ -888,6 +888,7 @@ Tcl_ExprObj(interp, objPtr, resultPtrPtr)
Tcl_SetObjResult(interp, saveObjPtr);
}
+done:
TclDecrRefCount(saveObjPtr);
return result;
}