From 0c5fed9d711d803103e7c686451dc6fa66a17eab Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Tue, 5 Jan 2010 23:28:16 +0000 Subject: [PATCH] Fix memory leak in CreateToolhelp32Snapshot(). Bug #5096. svn path=/trunk/; revision=44969 --- reactos/dll/win32/kernel32/misc/toolhelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/kernel32/misc/toolhelp.c b/reactos/dll/win32/kernel32/misc/toolhelp.c index 8e2600c0ee4..ad2f2b7db2a 100644 --- a/reactos/dll/win32/kernel32/misc/toolhelp.c +++ b/reactos/dll/win32/kernel32/misc/toolhelp.c @@ -98,7 +98,7 @@ TH32FreeAllocatedResources(PRTL_DEBUG_INFORMATION HeapDebug, if(ProcThrdInfo != NULL) { NtFreeVirtualMemory(NtCurrentProcess(), - ProcThrdInfo, + &ProcThrdInfo, &ProcThrdInfoSize, MEM_RELEASE); }