PR23560, PR23561, readelf memory leaks
authorAlan Modra <amodra@gmail.com>
Mon, 13 Jan 2020 12:00:46 +0000 (22:30 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 13 Jan 2020 12:15:36 +0000 (22:45 +1030)
commita788aedd86da983faf0afef3cb41461118a2e9f2
tree013d34de70329b9930b0b8f46f1418b32803c7a3
parent805f38bc551de820bcd7b31d3c5731ae27cf853a
PR23560, PR23561, readelf memory leaks

PR 23560
PR 23561
* dwarf.c (display_debug_frames): Move fde_fc earlier.  Free
fde_fc col_type and col_offset.
* readelf.c (apply_relocations): Move symsec check earlier.
(free_debug_section): Free reloc_info.
(process_notes_at): Free pnotes on error path.
(process_object): Free dump_sects here..
(process_archive): ..not here.
binutils/ChangeLog
binutils/dwarf.c
binutils/readelf.c