ntdll: Plug a memory leak.
This commit is contained in:
parent
9abd8852dd
commit
449e8557fd
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue