mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +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));
|
Fiber = RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(FIBER));
|
||||||
if (!Fiber)
|
if (!Fiber)
|
||||||
{
|
{
|
||||||
|
/* Free the activation context stack */
|
||||||
|
RtlFreeActivationContextStack(ActivationContextStack);
|
||||||
|
|
||||||
/* Fail */
|
/* Fail */
|
||||||
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue