Commit 2d4b588a authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

mountmgr.sys: Free wine_get_dos_file_name memory with HeapFree.

parent a0a4c2fb
......@@ -895,7 +895,7 @@ static BOOL get_volume_device_info( struct volume *volume )
}
handle = CreateFileW( name, GENERIC_READ | SYNCHRONIZE, FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, 0 );
RtlFreeHeap( GetProcessHeap(), 0, name );
HeapFree( GetProcessHeap(), 0, name );
if (handle == INVALID_HANDLE_VALUE)
{
WARN("Failed to open %s, err %lu\n", debugstr_a(unix_device), GetLastError());
......
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