summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-08-15 15:23:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-08-15 15:23:24 (GMT)
commitdd4f0a017f8990efb674f40a83f23100b8b4adfa (patch)
treebbc542f2e2fe6af007b5c0ccc9b4015f154a7b0d
parent29d4ebbe2818e74bc84371fc4535ae97b7284524 (diff)
downloadtcl-dd4f0a017f8990efb674f40a83f23100b8b4adfa.zip
tcl-dd4f0a017f8990efb674f40a83f23100b8b4adfa.tar.gz
tcl-dd4f0a017f8990efb674f40a83f23100b8b4adfa.tar.bz2
3390272 Leak of [info script] value.
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclBasic.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 963f194..e1654f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-15 Don Porter <dgp@users.sourceforge.net>
+
+ * generic/tclBasic.c: [Bug 3390272] Leak of [info script] value.
+
2011-08-15 Jan Nijtmans <nijtmans@users.sf.net>
* win/tcl.m4: [Bug 3388350] mingw64 compiler warnings
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index acecba6..c5c914e 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -1137,6 +1137,10 @@ DeleteInterpProc(interp)
if (iPtr->execEnvPtr != NULL) {
TclDeleteExecEnv(iPtr->execEnvPtr);
}
+ if (iPtr->scriptFile) {
+ Tcl_DecrRefCount(iPtr->scriptFile);
+ iPtr->scriptFile = NULL;
+ }
Tcl_DecrRefCount(iPtr->emptyObjPtr);
iPtr->emptyObjPtr = NULL;