mirror of
https://github.com/reactos/reactos.git
synced 2025-05-22 02:25:18 +00:00
Fix memory leak in CreateToolhelp32Snapshot(). Bug #5096.
svn path=/trunk/; revision=44969
This commit is contained in:
parent
d4aca75523
commit
0c5fed9d71
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ TH32FreeAllocatedResources(PRTL_DEBUG_INFORMATION HeapDebug,
|
||||||
if(ProcThrdInfo != NULL)
|
if(ProcThrdInfo != NULL)
|
||||||
{
|
{
|
||||||
NtFreeVirtualMemory(NtCurrentProcess(),
|
NtFreeVirtualMemory(NtCurrentProcess(),
|
||||||
ProcThrdInfo,
|
&ProcThrdInfo,
|
||||||
&ProcThrdInfoSize,
|
&ProcThrdInfoSize,
|
||||||
MEM_RELEASE);
|
MEM_RELEASE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue