diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-30 10:45:03 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-30 11:22:23 +0930 |
commit | a422bb9db1a432f6094a186e243717512d50eec9 (patch) | |
tree | 7ef92f829a3fd2ef2fc81c8e11883d93399130ec /binutils | |
parent | 0637da3c7325b28a2c05f016d7f290513b1cd19b (diff) | |
download | binutils-a422bb9db1a432f6094a186e243717512d50eec9.zip binutils-a422bb9db1a432f6094a186e243717512d50eec9.tar.gz binutils-a422bb9db1a432f6094a186e243717512d50eec9.tar.bz2 |
Re: readelf/objdump: Handle DWARF info with mixed types of range section
PR 30791
* dwarf.c (free_debug_information): Free range_versions.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/dwarf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 7ce5d8e..80bbc54 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. |