[PATCH 3/7] mscoree: Use LocalFree for memory allocated by LocalAlloc

Fabian Maurer dark.shadow4 at web.de
Sat Apr 23 13:17:25 CDT 2022


Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
 dlls/mscoree/corruntimehost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index 54b72091bf5..1651ca69d29 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -1093,7 +1093,7 @@ static void get_utf8_args(int *argc, char ***argv)

     (*argv)[*argc] = NULL;

-    HeapFree(GetProcessHeap(), 0, argvw);
+    LocalFree(argvw);
 }

 #if __i386__
--
2.36.0




More information about the wine-devel mailing list