Commit 1c30f780 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winepath: Free wine_get_(dos|unix)_file_name memory with HeapFree.

parent a49838f2
......@@ -215,7 +215,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
{
printf("%s%c", unix_name, separator);
}
free( unix_name );
HeapFree( GetProcessHeap(), 0, unix_name );
break;
}
......@@ -262,7 +262,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
{
WideCharToMultiByte(CP_UNIXCP, 0, windows_name, -1, path, MAX_PATH, NULL, NULL);
printf("%s%c", path, separator);
free( windows_name );
HeapFree( GetProcessHeap(), 0, windows_name );
}
else printf("%c", separator);
free( unix_name );
......
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