dbghelp: Remove redundant NULL checks before pdb_free (found by Smatch).

This commit is contained in:
James Hawkins 2006-10-05 19:38:54 -07:00 committed by Alexandre Julliard
parent ca118989f4
commit 1b95f60938
1 changed files with 3 additions and 3 deletions

View File

@ -1746,10 +1746,10 @@ static void pdb_free_lookup(const struct pdb_lookup* pdb_lookup)
switch (pdb_lookup->kind)
{
case PDB_JG:
if (pdb_lookup->u.jg.toc) pdb_free(pdb_lookup->u.jg.toc);
pdb_free(pdb_lookup->u.jg.toc);
break;
case PDB_DS:
if (pdb_lookup->u.ds.toc) pdb_free(pdb_lookup->u.ds.toc);
pdb_free(pdb_lookup->u.ds.toc);
break;
}
}
@ -2193,7 +2193,7 @@ static BOOL pdb_process_internal(const struct process* pcs,
leave:
/* Cleanup */
if (symbols_image) pdb_free(symbols_image);
pdb_free(symbols_image);
pdb_free_lookup(pdb_lookup);
if (image) UnmapViewOfFile(image);