Commit 1b95f609 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent ca118989
......@@ -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);
......
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