summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-04-23 18:01:40 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-04-23 18:01:40 (GMT)
commit2db8334efef30d1215c4929bd3abc4e3e0598004 (patch)
tree084c06487f1927cca7802fa2deea3e21481057a6
parentaa9216011ec86d77c35b1217e31a14c6517a4433 (diff)
downloadtcl-2db8334efef30d1215c4929bd3abc4e3e0598004.zip
tcl-2db8334efef30d1215c4929bd3abc4e3e0598004.tar.gz
tcl-2db8334efef30d1215c4929bd3abc4e3e0598004.tar.bz2
* generic/tclCompile.c (TclFreeCompileEnv): Tip 280's new field
extCmdMapPtr was not being freed [Bug 1705778, leak #1].
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclCompile.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7bbfaf8..e7af153 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-23 Miguel Sofer <msofer@users.sf.net>
+
+ * generic/tclCompile.c (TclFreeCompileEnv): Tip 280's new field
+ extCmdMapPtr was not being freed [Bug 1705778, leak #1].
+
2007-04-23 Kevin B. Kenny <kennykb@acm.org>
* generic/tclEnv.c (ReplaceString): Clear memory correctly when
@@ -10,6 +15,7 @@
All three of these issues reported under [Bug 1705778] - detected with
the existing test suite, no new regression tests required.
+>>>>>>> 1.3453
2007-04-22 Miguel Sofer <msofer@users.sf.net>
* generic/tclVar.c (TclDeleteNamespaceVars): fixed access to freed
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 5a3633d..690da17 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.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: tclCompile.c,v 1.115 2007/04/10 14:47:10 dkf Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.116 2007/04/23 18:01:41 msofer Exp $
*/
#include "tclInt.h"
@@ -994,6 +994,9 @@ TclFreeCompileEnv(
if (envPtr->mallocedAuxDataArray) {
ckfree((char *) envPtr->auxDataArrayPtr);
}
+ if (envPtr->extCmdMapPtr) {
+ ckfree((char *) envPtr->extCmdMapPtr);
+ }
}
/*