Rémi Bernon : winepath: Free wine_get_(dos|unix)_file_name memory with HeapFree.
Module: wine Branch: master Commit: 1c30f7803cf094860935013752a547322f2ac523 URL: https://gitlab.winehq.org/wine/wine/-/commit/1c30f7803cf094860935013752a5473... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Fri Nov 25 16:11:59 2022 +0100 winepath: Free wine_get_(dos|unix)_file_name memory with HeapFree. --- 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 );
participants (1)
-
Alexandre Julliard