summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_proc.cc
diff options
context:
space:
mode:
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);
}