Dmitry Timoshkov dmitry@baikal.ru writes:
@@ -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 );
It doesn't make sense to free the module as long as we don't free the associated modref.