summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index b9fa18d..eeca41b 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -8347,6 +8347,7 @@ TclChannelEventScriptInvoker(
*/
Tcl_Preserve(interp);
+ Tcl_Preserve(chanPtr);
result = Tcl_EvalObjEx(interp, esPtr->scriptPtr, TCL_EVAL_GLOBAL);
/*
@@ -8363,6 +8364,7 @@ TclChannelEventScriptInvoker(
}
TclBackgroundException(interp, result);
}
+ Tcl_Release(chanPtr);
Tcl_Release(interp);
}