[RTL]
authorCameron Gutman <aicommander@gmail.com>
Sat, 17 Dec 2011 08:22:04 +0000 (08:22 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 17 Dec 2011 08:22:04 +0000 (08:22 +0000)
- Don't pass stack garbage to ZwFreeVirtualMemory

svn path=/trunk/; revision=54667

reactos/lib/rtl/heapdbg.c

index 90672ab..d8beaa3 100644 (file)
@@ -94,7 +94,7 @@ RtlDebugCreateHeap(ULONG Flags,
 BOOLEAN NTAPI
 RtlDebugDestroyHeap(HANDLE HeapPtr)
 {
-    SIZE_T Size;
+    SIZE_T Size = 0;
     PHEAP Heap = (PHEAP)HeapPtr;
 
     if (Heap == RtlGetCurrentPeb()->ProcessHeap)