summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
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 /generic/tclCompile.c
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].
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c5
1 files changed, 4 insertions, 1 deletions
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);
+ }
}
/*