Author: dgorbachev
Date: Wed Jan 6 00:28:16 2010
New Revision: 44969
URL:
http://svn.reactos.org/svn/reactos?rev=44969&view=rev
Log:
Fix memory leak in CreateToolhelp32Snapshot(). Bug #5096.
Modified:
trunk/reactos/dll/win32/kernel32/misc/toolhelp.c
Modified: trunk/reactos/dll/win32/kernel32/misc/toolhelp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/to…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/toolhelp.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/toolhelp.c [iso-8859-1] Wed Jan 6 00:28:16
2010
@@ -98,7 +98,7 @@
if(ProcThrdInfo != NULL)
{
NtFreeVirtualMemory(NtCurrentProcess(),
- ProcThrdInfo,
+ &ProcThrdInfo,
&ProcThrdInfoSize,
MEM_RELEASE);
}