aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-12-14 05:10:18 +0000
committerChristopher Faylor <me@cgf.cx>2002-12-14 05:10:18 +0000
commitae31932c4fde27f432b53299b9011ed0a33a62f1 (patch)
tree8d1152bc0af7deefdf158873a57180989a0ca65e /winsup
parentba88622498adc2939b747b3f14f2713926631f7e (diff)
downloadnewlib-ae31932c4fde27f432b53299b9011ed0a33a62f1.zip
newlib-ae31932c4fde27f432b53299b9011ed0a33a62f1.tar.gz
newlib-ae31932c4fde27f432b53299b9011ed0a33a62f1.tar.bz2
add FIXME
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/pipe.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 2b711b7..bfca32e 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -138,6 +138,7 @@ fhandler_pipe::dup (fhandler_base *child)
fhandler_pipe *ftp = (fhandler_pipe *) child;
+ /* FIXME: This leaks handles in the failing condition */
if (guard == NULL)
ftp->guard = NULL;
else if (!DuplicateHandle (hMainProc, guard, hMainProc, &ftp->guard, 0, 1,