Skip to content
Snippets Groups Projects
Commit c1cb976b authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

ntdll: Fix a file descriptor leak.

parent 4b0a2f86
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment