ntdll: Fix a file descriptor leak.

This commit is contained in:
Alexandre Julliard 2009-09-10 10:53:38 +02:00
parent 4b0a2f8670
commit c1cb976b66
1 changed files with 1 additions and 0 deletions

View File

@ -2329,6 +2329,7 @@ NTSTATUS DIR_get_unix_cwd( char **cwd )
else status = FILE_GetNtStatus();
RtlLeaveCriticalSection( &dir_section );
if (old_cwd != -1) close( old_cwd );
if (needs_close) close( unix_fd );
}
if (!curdir->Handle) NtClose( handle );