diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | generic/tclBasic.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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> * generic/tclPosixStr.c: [Bug 3388350] mingw64 compiler warnings diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 124f932..f0f0c0f 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -1529,6 +1529,10 @@ DeleteInterpProc( if (iPtr->execEnvPtr != NULL) { TclDeleteExecEnv(iPtr->execEnvPtr); } + if (iPtr->scriptFile) { + Tcl_DecrRefCount(iPtr->scriptFile); + iPtr->scriptFile = NULL; + } Tcl_DecrRefCount(iPtr->emptyObjPtr); iPtr->emptyObjPtr = NULL; |