Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-08-20 12:34:21 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-08-20 12:34:21 +0400
commit1c1b04b84cfedf7a7c6ce087d9644d6648372676 (patch)
tree2164743f228755601941500265256852b44a165a /winsup/cygwin/mmap.cc
parent5546e07b4f4106b0f11d3d1ab206422a636fd42b (diff)
* dtable.cc (build_fh_dev): Take additional bool parameter indicating
whether set_name should be called or not. (dtable::dup_worker): Call build_fh_pc with new second parameter set to false. Explain why. If fhandler's dup failed, delete rather than cfree newfh and set newfh to NULL to indicate failure correctly. * dtable.h (build_fh_pc): Change declaration according to above change. Default set_name parameter to true. * mmap.cc (mmap_record::free_fh): Delete rather than cfree fh.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index df4cb457a..94dee5e4d 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -536,7 +536,7 @@ void
mmap_record::free_fh (fhandler_base *fh)
{
if (!anonymous ())
- cfree (fh);
+ delete fh;
}
mmap_record *