ntdll: Fix a memory leak in fork_and_exec.

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Sven Baars 2020-04-18 22:06:48 +02:00 committed by Alexandre Julliard
parent 1b6b0cda7a
commit 1cfaf1425a
1 changed files with 1 additions and 0 deletions

View File

@ -1554,6 +1554,7 @@ static NTSTATUS fork_and_exec( UNICODE_STRING *path, const RTL_USER_PROCESS_PARA
if (stdout_fd != -1) close( stdout_fd );
RtlFreeHeap( GetProcessHeap(), 0, argv );
RtlFreeHeap( GetProcessHeap(), 0, envp );
RtlFreeHeap( GetProcessHeap(), 0, unixdir );
RtlFreeAnsiString( &unix_name );
return status;
}