Skip to content

Commit

Permalink
Memory leak injector fix by odalet.
Browse files Browse the repository at this point in the history
  • Loading branch information
cplotts committed Sep 28, 2012
1 parent a2237e2 commit b0708b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ManagedInjector/Injector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b0708b8

Please sign in to comment.