mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[KERNEL32]
Fix a memory leak svn path=/trunk/; revision=58550
This commit is contained in:
parent
b0ef5a574c
commit
040316d9fc
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue