aboutsummaryrefslogtreecommitdiff
path: root/src/windows/leash/out2con.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/leash/out2con.cpp')
-rw-r--r--src/windows/leash/out2con.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/windows/leash/out2con.cpp b/src/windows/leash/out2con.cpp
index f7a1d35..877eac1 100644
--- a/src/windows/leash/out2con.cpp
+++ b/src/windows/leash/out2con.cpp
@@ -96,9 +96,7 @@ ConsoleEcho::ConsoleEcho()
FILE* fp = _fdopen(m_pipefd, "w");
// copy to stdout
*stdout = *fp;
- // now slam the allocated FILE's _flag to zero to mark it as free without
- // actually closing the os file handle and pipe
- fp->_flag = 0;
+ // fp leaks, but we can't close it without closing the OS file handle
// disable buffering
setvbuf(stdout, NULL, _IONBF, 0);