Sven Baars : ntdll: Fix a string leak in init_user_process_params (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Apr 20 15:48:20 CDT 2020


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

Author: Sven Baars <sbaars at codeweavers.com>
Date:   Sat Apr 18 22:06:47 2020 +0200

ntdll: Fix a string leak in init_user_process_params (Valgrind).

Signed-off-by: Sven Baars <sbaars at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/env.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ntdll/env.c b/dlls/ntdll/env.c
index b15a425556..6670786def 100644
--- a/dlls/ntdll/env.c
+++ b/dlls/ntdll/env.c
@@ -1471,6 +1471,7 @@ void init_user_process_params( SIZE_T data_size )
 
         params->Environment = env;
         NtCurrentTeb()->Peb->ProcessParameters = params;
+        RtlFreeUnicodeString( &initial_params.ImagePathName );
         RtlFreeUnicodeString( &cmdline );
         RtlReleasePath( load_path );
 




More information about the wine-cvs mailing list