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