mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 03:17:39 +00:00
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 */
|
/* We don't need the orignal mapping any more */
|
||||||
UnmapViewOfFile( (LPVOID)hModule );
|
UnmapViewOfFile( (LPVOID)hModule );
|
||||||
|
close( unix_handle );
|
||||||
return (HMODULE)load_addr;
|
return (HMODULE)load_addr;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
Loading…
Reference in a new issue