kernelbase: Fix a leak on error path (Coverity).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bbcf44eb97
commit
f4ecef4565
|
@ -868,6 +868,7 @@ LPVOID WINAPI DECLSPEC_HOTPATCH CreateFiberEx( SIZE_T stack_commit, SIZE_T stack
|
|||
if ((status = RtlCreateUserStack( stack_commit, stack_reserve, 0, 1, 1, &stack )))
|
||||
{
|
||||
SetLastError( RtlNtStatusToDosError(status) );
|
||||
HeapFree( GetProcessHeap(), 0, fiber );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue