Fix memory leak in CreateToolhelp32Snapshot(). Bug #5096.

svn path=/trunk/; revision=44969
This commit is contained in:
Dmitry Gorbachev 2010-01-05 23:28:16 +00:00
parent d4aca75523
commit 0c5fed9d71

View file

@ -98,7 +98,7 @@ TH32FreeAllocatedResources(PRTL_DEBUG_INFORMATION HeapDebug,
if(ProcThrdInfo != NULL)
{
NtFreeVirtualMemory(NtCurrentProcess(),
ProcThrdInfo,
&ProcThrdInfo,
&ProcThrdInfoSize,
MEM_RELEASE);
}