mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-03 00:28:29 +00:00
winepath: Free wine_get_(dos|unix)_file_name memory with HeapFree.
This commit is contained in:
parent
a49838f24e
commit
1c30f7803c
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue