Author: hbelusca
Date: Sun Mar 17 22:56:49 2013
New Revision: 58550
URL:
http://svn.reactos.org/svn/reactos?rev=58550&view=rev
Log:
[KERNEL32]
Fix a memory leak
Modified:
trunk/reactos/dll/win32/kernel32/client/fiber.c
Modified: trunk/reactos/dll/win32/kernel32/client/fiber.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/fiber.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/fiber.c [iso-8859-1] Sun Mar 17 22:56:49 2013
@@ -195,6 +195,9 @@
Fiber = RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(FIBER));
if (!Fiber)
{
+ /* Free the activation context stack */
+ RtlFreeActivationContextStack(ActivationContextStack);
+
/* Fail */
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
return NULL;