ntdll: Fix a ImagePathName memory leak (Valgrind).

Signed-off-by: Chao Long <longchao@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Chao Long 2020-09-10 11:09:34 +08:00 committed by Alexandre Julliard
parent 93937a53f1
commit 655ab7a84f
1 changed files with 1 additions and 0 deletions

View File

@ -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 );