[PATCH] dbghelp: Fix memory leak.
Alexandre Julliard
julliard at winehq.org
Fri Jan 19 11:59:35 CST 2018
Andrey Gusev <andrey.goosev at gmail.com> writes:
> @@ -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;
Freeing a null pointer is not useful.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list