[KERNEL32]

Fix a memory leak

svn path=/trunk/; revision=58550
This commit is contained in:
Hermès Bélusca-Maïto 2013-03-17 22:56:49 +00:00
parent b0ef5a574c
commit 040316d9fc

View file

@ -195,6 +195,9 @@ CreateFiberEx(SIZE_T dwStackCommitSize,
Fiber = RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(FIBER));
if (!Fiber)
{
/* Free the activation context stack */
RtlFreeActivationContextStack(ActivationContextStack);
/* Fail */
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
return NULL;