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>2011-08-12 16:35:37 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-08-12 16:35:37 +0400
commitad39174691b1902a1657bad05571c33f121227c0 (patch)
treed236a32c6a7c5f9eb3f77dbc5d855f08c934f078 /winsup/cygwin/fhandler_proc.cc
parent1f08558f14e45382f5f5b137c45aae3bb79b067c (diff)
* fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
instead. Also fix previous ChangeLog entry.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 94007cae1..74c4cf288 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -236,7 +236,7 @@ fhandler_proc::opendir (int fd)
int
fhandler_proc::closedir (DIR *dir)
{
- free (dir->__handle);
+ delete (winpids *) dir->__handle;
return fhandler_virtual::closedir (dir);
}