Module: wine Branch: master Commit: 091f33e8c623f1490d1f9c829618553c2c1a96f7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=091f33e8c623f1490d1f9c8296...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue Aug 25 00:25:04 2009 +0200
ntdll: Fix a memory leak on an error path (Smatch).
---
dlls/ntdll/thread.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c index f44bd60..438d798 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -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);