diff options
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/fhandler/proc.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler/proc.cc b/winsup/cygwin/fhandler/proc.cc index cb75418..a508d4b 100644 --- a/winsup/cygwin/fhandler/proc.cc +++ b/winsup/cygwin/fhandler/proc.cc @@ -243,6 +243,8 @@ fhandler_proc::opendir (int fd) DIR *dir = fhandler_virtual::opendir (fd); if (dir && !(dir->__handle = (void *) new winpids ((DWORD) 0))) { + free (dir->__d_dirname); + free (dir->__d_dirent); free (dir); dir = NULL; set_errno (ENOMEM); |