about summary refs log tree commit diff
path: root/libio/oldiopopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/oldiopopen.c')
-rw-r--r--libio/oldiopopen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/oldiopopen.c b/libio/oldiopopen.c
index 815074f3bf..1e6f13358f 100644
--- a/libio/oldiopopen.c
+++ b/libio/oldiopopen.c
@@ -136,6 +136,8 @@ _IO_old_proc_open (fp, command, mode)
     }
   else
     {
+      _IO_close (pipe_fds[0]);
+      _IO_close (pipe_fds[1]);
       __set_errno (EINVAL);
       return NULL;
     }