From b0708b87b74a371d5beeef7ac708347dcdb95a5d Mon Sep 17 00:00:00 2001 From: cplotts Date: Fri, 28 Sep 2012 17:47:06 -0500 Subject: [PATCH] Memory leak injector fix by odalet. --- ManagedInjector/Injector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ManagedInjector/Injector.cpp b/ManagedInjector/Injector.cpp index 0bbacb8ee..aa9fc14aa 100644 --- a/ManagedInjector/Injector.cpp +++ b/ManagedInjector/Injector.cpp @@ -53,7 +53,7 @@ void Injector::Launch(System::IntPtr windowHandle, System::String^ assembly, Sys ::UnhookWindowsHookEx(_messageHookHandle); } - ::VirtualFreeEx(hProcess, acmRemote, buffLen, MEM_RELEASE); + ::VirtualFreeEx(hProcess, acmRemote, 0, MEM_RELEASE); } ::CloseHandle(hProcess);