[PATCH] dbghelp: Fix memory leak.
Andrey Gusev
andrey.goosev at gmail.com
Fri Jan 19 08:22:10 CST 2018
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
dlls/dbghelp/msc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index eba26498cb..8b66a0811f 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -2740,6 +2740,7 @@ static BOOL pdb_process_internal(const struct process* pcs,
{
WARN("Unable to open .PDB file: %s\n", pdb_lookup->filename);
CloseHandle(hMap);
+ UnmapViewOfFile(image);
return FALSE;
}
if (!pdb_init(pdb_lookup, pdb_file, image, &matched) || matched != 2)
--
2.13.6
More information about the wine-devel
mailing list