summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-08-15 15:58:36 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-08-15 15:58:36 (GMT)
commit390f671e1fb53b6aa2602e9c5d3b57d304f3cc20 (patch)
tree10c86de93291a3e67c0e4d034bb210e43f4912fa /generic/tclBasic.c
parent2cb27be8160ee4efeeee0402f4f8f86124c237a2 (diff)
parent2351cdb2f4db42c7f78009bde070cb095ea22fca (diff)
downloadtcl-390f671e1fb53b6aa2602e9c5d3b57d304f3cc20.zip
tcl-390f671e1fb53b6aa2602e9c5d3b57d304f3cc20.tar.gz
tcl-390f671e1fb53b6aa2602e9c5d3b57d304f3cc20.tar.bz2
3390272 Leak of [info script] value.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
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;