[PATCH] kernelbase: Fix a string leak in CreateProcessInternal (Valgrind).
Sven Baars
sbaars at codeweavers.com
Sat Apr 18 15:06:46 CDT 2020
Signed-off-by: Sven Baars <sbaars at codeweavers.com>
---
dlls/kernelbase/process.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/kernelbase/process.c b/dlls/kernelbase/process.c
index b125f100f6..3369180206 100644
--- a/dlls/kernelbase/process.c
+++ b/dlls/kernelbase/process.c
@@ -182,10 +182,12 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( const WCHAR *filename
&cmdlineW, envW, &titleW, &desktopW,
NULL, &runtimeW, PROCESS_PARAMS_FLAG_NORMALIZED ))
{
+ RtlFreeUnicodeString( &newdirW );
RtlReleasePath( load_path );
if (envW != env) RtlFreeHeap( GetProcessHeap(), 0, envW );
return NULL;
}
+ RtlFreeUnicodeString( &newdirW );
RtlReleasePath( load_path );
if (flags & CREATE_NEW_PROCESS_GROUP) params->ConsoleFlags = 1;
--
2.24.0
More information about the wine-devel
mailing list