From ecdee6e98ab783d321b1ffe9a10d09e19e19eb6d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 3 Mar 2006 20:19:26 +0000 Subject: * dir.cc (opendir): Fix indentation. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Move storing fhandler in file descriptor table to some point very late in function to avoid double free'ing. Add comment to explain what happens. Add label free_mounts and don't forget to delete __DIR_mounts structure if NtOpenFile fails. --- winsup/cygwin/dir.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/dir.cc') diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index b81b83855..c40401258 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -61,7 +61,7 @@ opendir (const char *name) if (!fh) res = NULL; else if (fh->exists ()) - res = fh->opendir (); + res = fh->opendir (); else { set_errno (ENOENT); -- cgit v1.2.3