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>
This commit is contained in:
parent
1b6b0cda7a
commit
1cfaf1425a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue