kernelbase: Fix a string leak in CreateProcessInternal (Valgrind).
Signed-off-by: Sven Baars <sbaars@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
973138c068
commit
a202ecd457
|
@ -182,10 +182,12 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( const WCHAR *filename
|
||||||
&cmdlineW, envW, &titleW, &desktopW,
|
&cmdlineW, envW, &titleW, &desktopW,
|
||||||
NULL, &runtimeW, PROCESS_PARAMS_FLAG_NORMALIZED ))
|
NULL, &runtimeW, PROCESS_PARAMS_FLAG_NORMALIZED ))
|
||||||
{
|
{
|
||||||
|
RtlFreeUnicodeString( &newdirW );
|
||||||
RtlReleasePath( load_path );
|
RtlReleasePath( load_path );
|
||||||
if (envW != env) RtlFreeHeap( GetProcessHeap(), 0, envW );
|
if (envW != env) RtlFreeHeap( GetProcessHeap(), 0, envW );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
RtlFreeUnicodeString( &newdirW );
|
||||||
RtlReleasePath( load_path );
|
RtlReleasePath( load_path );
|
||||||
|
|
||||||
if (flags & CREATE_NEW_PROCESS_GROUP) params->ConsoleFlags = 1;
|
if (flags & CREATE_NEW_PROCESS_GROUP) params->ConsoleFlags = 1;
|
||||||
|
|
Loading…
Reference in New Issue