summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-05-06 23:23:43 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-05-06 23:23:43 (GMT)
commit3fd76e6ba7344534a329e50176ce30046e3c3aa2 (patch)
treefd1214e57425a261961ede1e88d157afa4af3b78 /generic/tclIO.c
parent7218e5967c732e29387a5daed448c1784e490c6c (diff)
downloadtcl-3fd76e6ba7344534a329e50176ce30046e3c3aa2.zip
tcl-3fd76e6ba7344534a329e50176ce30046e3c3aa2.tar.gz
tcl-3fd76e6ba7344534a329e50176ce30046e3c3aa2.tar.bz2
Stop memory leak in io-29.34
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 fc3722c..b2b4e5c 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -2525,6 +2525,7 @@ FlushChannel(
if (errorCode == EINTR) {
errorCode = 0;
+ ReleaseChannelBuffer(bufPtr);
continue;
}
@@ -2546,6 +2547,7 @@ FlushChannel(
UpdateInterest(chanPtr);
}
errorCode = 0;
+ ReleaseChannelBuffer(bufPtr);
break;
}