ntdll: Fix the file mapping view leak in the case of module loading failure.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Feb 27 03:19:38 CST 2012
---
dlls/ntdll/loader.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 381e2ac..1355eec 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -1548,6 +1548,8 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file,
*pwm = wm;
status = STATUS_SUCCESS;
done:
+ if (status && module)
+ NtUnmapViewOfSection( NtCurrentProcess(), module );
NtClose( mapping );
return status;
}
--
1.7.8.4
More information about the wine-patches
mailing list