ntdll: Fix a memory leak on an error path (Smatch).

This commit is contained in:
Michael Stefaniuc 2009-08-25 00:25:04 +02:00 committed by Alexandre Julliard
parent 4d413296d2
commit 091f33e8c6
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ static NTSTATUS init_user_process_params( SIZE_T data_size, HANDLE *exe_file )
}
}
SERVER_END_REQ;
if (status != STATUS_SUCCESS) return status;
if (status != STATUS_SUCCESS) goto done;
size = sizeof(*params);
size += MAX_NT_PATH_LENGTH * sizeof(WCHAR);