summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclIO.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index d69a3d9..678dc4b 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -2716,11 +2716,8 @@ FlushChannel(
statePtr->outQueueTail = NULL;
}
RecycleBuffer(statePtr, bufPtr, 0);
- bufPtr = NULL;
- }
- if (bufPtr) {
- ReleaseChannelBuffer(bufPtr);
}
+ ReleaseChannelBuffer(bufPtr);
} /* Closes "while (1)". */
/*