From 09d0406a2cc2a04b3d2a5abd908a32b5285e68f7 Mon Sep 17 00:00:00 2001 From: papadp Date: Sun, 22 Nov 2015 03:10:45 -0800 Subject: [PATCH] Update Inject.c added CloseHandle to close the handle opened to read the dll file. --- inject/src/Inject.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inject/src/Inject.c b/inject/src/Inject.c index a7f4a2f..1933be1 100644 --- a/inject/src/Inject.c +++ b/inject/src/Inject.c @@ -109,7 +109,10 @@ int main( int argc, char * argv[] ) WaitForSingleObject( hModule, -1 ); } while( 0 ); - + + if (hFile) + CloseHandle(hFile); + if( lpBuffer ) HeapFree( GetProcessHeap(), 0, lpBuffer ); @@ -117,4 +120,4 @@ int main( int argc, char * argv[] ) CloseHandle( hProcess ); return 0; -} \ No newline at end of file +}