[RTL]
authorCameron Gutman <aicommander@gmail.com>
Sat, 17 Dec 2011 08:30:48 +0000 (08:30 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 17 Dec 2011 08:30:48 +0000 (08:30 +0000)
- Pass size 0 when calling NtFreeVirtualMemory for MEM_RELEASE

svn path=/trunk/; revision=54668

reactos/lib/rtl/handle.c

index 241a8c3..f917086 100644 (file)
@@ -35,13 +35,12 @@ VOID NTAPI
 RtlDestroyHandleTable(PRTL_HANDLE_TABLE HandleTable)
 {
    PVOID ArrayPointer;
-   SIZE_T ArraySize;
+   SIZE_T ArraySize = 0;
 
    /* free handle array */
    if (HandleTable->CommittedHandles)
      {
         ArrayPointer = (PVOID)HandleTable->CommittedHandles;
-        ArraySize = HandleTable->SizeOfHandleTableEntry * HandleTable->MaximumNumberOfHandles;
         NtFreeVirtualMemory(NtCurrentProcess(),
                            &ArrayPointer,
                            &ArraySize,