From 0d8efc429f900839298b40fd80755a3d3f35b34a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 17 Sep 2005 20:36:34 +0000 Subject: [PATCH] * pipe.cc (fhandler_pipe::open): Use 'cfree' to free buffer since it is now allocated by cmalloc. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/pipe.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5055960c6..48cf9364d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-09-17 Christopher Faylor + + * pipe.cc (fhandler_pipe::open): Use 'cfree' to free buffer since it is + now allocated by cmalloc. + 2005-09-17 Corinna Vinschen * net.cc (cygwin_inet_ntop): Change len argument to socklen_t to diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index 0a289a731..3407f0945 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: