summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-08-15 15:56:16 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-08-15 15:56:16 (GMT)
commit3cf838cdbb975ba9d9f11e400a0bd7681c2b9bed (patch)
tree9739811420729a4fb9c19200b723a3525ad918fe /generic/tclBasic.c
parent788d06fcf3f90ffe105c77b3230be4f3fc1a62bd (diff)
downloadtcl-3cf838cdbb975ba9d9f11e400a0bd7681c2b9bed.zip
tcl-3cf838cdbb975ba9d9f11e400a0bd7681c2b9bed.tar.gz
tcl-3cf838cdbb975ba9d9f11e400a0bd7681c2b9bed.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 eb041c6..764e0d9 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -1352,6 +1352,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;