From: Rémi Bernon rbernon@codeweavers.com
--- programs/winepath/winepath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c index 88c64b91a42..9a322f40937 100644 --- a/programs/winepath/winepath.c +++ b/programs/winepath/winepath.c @@ -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 );