Commit ddd1a736 authored by Peter Ganten's avatar Peter Ganten Committed by Alexandre Julliard

Fixed a file descriptor leak in the PE loader.

parent 69d39ab0
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment