* Re: readelf/objdump: Handle DWARF info with mixed types of range section
@ 2023-08-30 1:54 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-08-30 1:54 UTC (permalink / raw)
To: binutils
PR 30791
* dwarf.c (free_debug_information): Free range_versions.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 7ce5d8efb2b..80bbc547bb1 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -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.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-30 1:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 1:54 readelf/objdump: Handle DWARF info with mixed types of range section Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).