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:
parent
93937a53f1
commit
655ab7a84f
|
@ -1250,6 +1250,7 @@ void init_user_process_params(void)
|
||||||
|
|
||||||
params->Environment = env;
|
params->Environment = env;
|
||||||
NtCurrentTeb()->Peb->ProcessParameters = params;
|
NtCurrentTeb()->Peb->ProcessParameters = params;
|
||||||
|
RtlFreeUnicodeString( &initial_params.ImagePathName );
|
||||||
RtlFreeUnicodeString( &cmdline );
|
RtlFreeUnicodeString( &cmdline );
|
||||||
RtlReleasePath( load_path );
|
RtlReleasePath( load_path );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue