ntdll: Fix a file descriptor leak.
This commit is contained in:
parent
4b0a2f8670
commit
c1cb976b66
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue