ntdll: Fix a memory leak on an error path (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Mon Aug 24 17:25:04 CDT 2009
---
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);
--
1.6.4
More information about the wine-patches
mailing list