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

This commit is contained in:
Eric Pouech 2011-01-17 21:57:46 +01:00 committed by Alexandre Julliard
parent 711f71639d
commit e72d5d6de4
1 changed files with 5 additions and 0 deletions

View File

@ -2790,6 +2790,11 @@ static BOOL pdb_process_file(const struct process* pcs,
msc_dbg->module->module.SourceIndexed = TRUE; msc_dbg->module->module.SourceIndexed = TRUE;
msc_dbg->module->module.Publics = TRUE; msc_dbg->module->module.Publics = TRUE;
} }
else
{
msc_dbg->module->format_info[DFI_PDB] = NULL;
HeapFree(GetProcessHeap(), 0, modfmt);
}
return ret; return ret;
} }