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

Alexandre Julliard julliard at winehq.org
Fri Aug 7 10:42:29 CDT 2020


Module: wine
Branch: stable
Commit: e7658f1ec9846ece659b35f2096610ca21098c65
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e7658f1ec9846ece659b35f2096610ca21098c65

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>
(cherry picked from commit 9ce4383128562eeab60297f661f4e596d493d309)
Signed-off-by: Michael Stefaniuc <mstefani 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 de3ada01a0..c5175080c4 100644
--- a/dlls/ntdll/env.c
+++ b/dlls/ntdll/env.c
@@ -1462,6 +1462,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