* path.cc (symlink_info::check_shortcut): Ensure that symlink handle is closed

on successful return.
This commit is contained in:
Christopher Faylor 2008-12-24 16:34:38 +00:00
parent 2f6f0bbeae
commit 58402a3f63
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-12-24 Christopher Faylor <me+cygwin@cgf.cx>
* path.cc (symlink_info::check_shortcut): Ensure that symlink handle is
closed on successful return.
2008-12-23 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler.h (fhandler_base_setup_overlapped): Add new argument.

View File

@ -1902,11 +1902,10 @@ symlink_info::check_shortcut (HANDLE in_h)
}
if (res) /* It's a symlink. */
pflags = PATH_SYMLINK | PATH_LNK;
return res;
out:
NtClose (h);
return 0;
return res;
}
int