Free gas/dwarf2dbg.c dirs

Entries are allocated with xmemdup0.

	* dwarf2dbg.c (dwarf2_cleanup): Free dirs entries.
This commit is contained in:
Alan Modra 2023-01-26 19:12:09 +10:30
parent dd61b2d1ac
commit d437724a56

View File

@ -3096,6 +3096,8 @@ dwarf2_cleanup (void)
{
purge_generated_debug (true);
free (files);
for (unsigned int i = 0; i < dirs_in_use; i++)
free (dirs[i]);
free (dirs);
}