diff --git a/dlls/ntdll/env.c b/dlls/ntdll/env.c index 06e7c1bb372..933792317da 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 );