summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-08-19 20:27:48 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-08-19 20:27:48 (GMT)
commit6b86c2f514ad7c263691443055ad1d0a94a9f4f9 (patch)
tree0162290298d31cb6757eed6bca89246a63e35a79 /generic
parentb4307ec076f504b43a12901bb34c646ea5267391 (diff)
downloadtcl-6b86c2f514ad7c263691443055ad1d0a94a9f4f9.zip
tcl-6b86c2f514ad7c263691443055ad1d0a94a9f4f9.tar.gz
tcl-6b86c2f514ad7c263691443055ad1d0a94a9f4f9.tar.bz2
3393279, 3393280 ReflectClose(.) is missing Tcl_EventuallyFree() calls
at some of its exits.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIORTrans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclIORTrans.c b/generic/tclIORTrans.c
index 272306b..4806690 100644
--- a/generic/tclIORTrans.c
+++ b/generic/tclIORTrans.c
@@ -940,6 +940,7 @@ ReflectClose(
int errorCode;
if (!TransformDrain(rtPtr, &errorCode)) {
+ Tcl_EventuallyFree (rtPtr, (Tcl_FreeProc *) FreeReflectedTransform);
return errorCode;
}
}
@@ -948,6 +949,7 @@ ReflectClose(
int errorCode;
if (!TransformFlush(rtPtr, &errorCode, FLUSH_WRITE)) {
+ Tcl_EventuallyFree (rtPtr, (Tcl_FreeProc *) FreeReflectedTransform);
return errorCode;
}
}