Fixed a file descriptor leak in the PE loader.
This commit is contained in:
parent
69d39ab023
commit
ddd1a73675
|
@ -713,6 +713,7 @@ HMODULE PE_LoadImage( HANDLE hFile, LPCSTR filename )
|
|||
|
||||
/* We don't need the orignal mapping any more */
|
||||
UnmapViewOfFile( (LPVOID)hModule );
|
||||
close( unix_handle );
|
||||
return (HMODULE)load_addr;
|
||||
|
||||
error:
|
||||
|
|
Loading…
Reference in New Issue