diff options
Diffstat (limited to 'src/modules/plugins/dll_sniffer.cpp')
-rw-r--r-- | src/modules/plugins/dll_sniffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/plugins/dll_sniffer.cpp b/src/modules/plugins/dll_sniffer.cpp index 531c9e6919..59bcacc652 100644 --- a/src/modules/plugins/dll_sniffer.cpp +++ b/src/modules/plugins/dll_sniffer.cpp @@ -142,7 +142,8 @@ MUUID* GetPluginInterfaces(const TCHAR* ptszFileName, bool& bIsPlugin) }
__finally
{
- UnmapViewOfFile(ptr);
+ if (ptr) UnmapViewOfFile(ptr);
+ if (hMap) CloseHandle(hMap);
CloseHandle(hFile);
};
|