aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/pipe.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-09-17 20:36:34 +0000
committerChristopher Faylor <me@cgf.cx>2005-09-17 20:36:34 +0000
commit0d8efc429f900839298b40fd80755a3d3f35b34a (patch)
tree7d71de9102a9f74e1b5dffcf4e9f40ea35e1dce4 /winsup/cygwin/pipe.cc
parent5da8b1281b4a9bb9c1748cd72a73af3b97a1f9fb (diff)
downloadnewlib-0d8efc429f900839298b40fd80755a3d3f35b34a.zip
newlib-0d8efc429f900839298b40fd80755a3d3f35b34a.tar.gz
newlib-0d8efc429f900839298b40fd80755a3d3f35b34a.tar.bz2
* pipe.cc (fhandler_pipe::open): Use 'cfree' to free buffer since it is now
allocated by cmalloc.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 0a289a7..3407f09 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -119,7 +119,7 @@ fhandler_pipe::open (int flags, mode_t mode)
if (flags & O_NOINHERIT)
close_on_exec (true);
uninterruptible_io (fh->uninterruptible_io ());
- free (fh);
+ cfree (fh);
CloseHandle (proc);
return 1;
out: