Commit 449e8557 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

ntdll: Plug a memory leak.

parent 9abd8852
...@@ -1698,7 +1698,10 @@ NTSTATUS wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRING *un ...@@ -1698,7 +1698,10 @@ NTSTATUS wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRING *un
{ {
/* creation fails with STATUS_ACCESS_DENIED for the root of the drive */ /* creation fails with STATUS_ACCESS_DENIED for the root of the drive */
if (disposition == FILE_CREATE) if (disposition == FILE_CREATE)
{
RtlFreeHeap( GetProcessHeap(), 0, unix_name );
return name_len ? STATUS_OBJECT_NAME_COLLISION : STATUS_ACCESS_DENIED; return name_len ? STATUS_OBJECT_NAME_COLLISION : STATUS_ACCESS_DENIED;
}
goto done; goto done;
} }
} }
......
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