Re: readelf/objdump: Handle DWARF info with mixed types of range section

PR 30791
	* dwarf.c (free_debug_information): Free range_versions.
This commit is contained in:
Alan Modra 2023-08-30 10:45:03 +09:30
parent 0637da3c73
commit a422bb9db1

View File

@ -3562,7 +3562,10 @@ free_debug_information (debug_info *ent)
free (ent->have_frame_base);
}
if (ent->max_range_lists)
free (ent->range_lists);
{
free (ent->range_versions);
free (ent->range_lists);
}
}
/* Process the contents of a .debug_info section.