diff options
author | dgp <dgp@users.sourceforge.net> | 2011-08-15 15:58:36 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-08-15 15:58:36 (GMT) |
commit | 5091d3e4c2fe79c2b78dd7d493746eb866f3d50c (patch) | |
tree | 10c86de93291a3e67c0e4d034bb210e43f4912fa /generic/tclBasic.c | |
parent | cdce7f15f104d0de1a8d5160a2b16bea97de652c (diff) | |
parent | 3cf838cdbb975ba9d9f11e400a0bd7681c2b9bed (diff) | |
download | tcl-5091d3e4c2fe79c2b78dd7d493746eb866f3d50c.zip tcl-5091d3e4c2fe79c2b78dd7d493746eb866f3d50c.tar.gz tcl-5091d3e4c2fe79c2b78dd7d493746eb866f3d50c.tar.bz2 |
3390272 Leak of [info script] value.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |