asan: readelf: memory leaks
authorAlan Modra <amodra@gmail.com>
Sat, 14 Mar 2020 00:41:28 +0000 (11:11 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 14 Mar 2020 06:54:19 +0000 (17:24 +1030)
commitf761cb13a903da6a5a1b3f9a5cb984600124ac31
tree6e1df6192e7784bda1498f8559cb00ef62d6074f
parent02a8180e6f6146f95593001247f6cd080bdb7b38
asan: readelf: memory leaks

* readelf.c (dump_section_as_strings): Free memory on error exit.
(dump_section_as_bytes, process_notes_at): Likewise.
(get_build_id): Free enote.
binutils/ChangeLog
binutils/readelf.c