Commit c1cb976b authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Fix a file descriptor leak.

parent 4b0a2f86
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment