Commit e72d5d6d authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: When failing to look up for a PDB file, don't keep a module format object around.

parent 711f7163
......@@ -2790,6 +2790,11 @@ static BOOL pdb_process_file(const struct process* pcs,
msc_dbg->module->module.SourceIndexed = TRUE;
msc_dbg->module->module.Publics = TRUE;
}
else
{
msc_dbg->module->format_info[DFI_PDB] = NULL;
HeapFree(GetProcessHeap(), 0, modfmt);
}
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment