Fabian Maurer : mscoree: Use LocalFree for memory allocated by LocalAlloc.

Alexandre Julliard julliard at winehq.org
Mon Apr 25 16:30:31 CDT 2022


Module: wine
Branch: master
Commit: 2c405c746866fb3b07b7df77fd57be78bbc3669b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2c405c746866fb3b07b7df77fd57be78bbc3669b

Author: Fabian Maurer <dark.shadow4 at web.de>
Date:   Sat Apr 23 20:17:25 2022 +0200

mscoree: Use LocalFree for memory allocated by LocalAlloc.

Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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__




More information about the wine-cvs mailing list