Chao Long : ntdll: Fix a ImagePathName memory leak (Valgrind).
Module: wine Branch: master Commit: 655ab7a84f1442ebc185a09acd06611cac1a3eb2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=655ab7a84f1442ebc185a09ac... Author: Chao Long <longchao(a)uniontech.com> Date: Thu Sep 10 11:09:34 2020 +0800 ntdll: Fix a ImagePathName memory leak (Valgrind). Signed-off-by: Chao Long <longchao(a)uniontech.com> Signed-off-by: Alexandre Julliard <julliard(a)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 06e7c1bb37..933792317d 100644 --- a/dlls/ntdll/env.c +++ b/dlls/ntdll/env.c @@ -1250,6 +1250,7 @@ void init_user_process_params(void) params->Environment = env; NtCurrentTeb()->Peb->ProcessParameters = params; + RtlFreeUnicodeString( &initial_params.ImagePathName ); RtlFreeUnicodeString( &cmdline ); RtlReleasePath( load_path );
participants (1)
-
Alexandre Julliard