]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
readelf, objdump: fix ctf dict leak
authorNick Alcock <nick.alcock@oracle.com>
Mon, 10 Feb 2025 14:40:00 +0000 (14:40 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 28 Feb 2025 15:13:24 +0000 (15:13 +0000)
commitf1b636cf3f9d9502444edbd602624237e609979e
tree9d5798440457d71c47694f5e81603579becdbc5f
parenta480362d88405301e28fefed895e390507354cae
readelf, objdump: fix ctf dict leak

ctf_archive_next returns an opened dict, which must be closed by the caller.

Thanks to Alan Modra for spotting this.

binutils/
* objdump.c (dump_ctf): Close dict.
* readelf.c (dump_section_as_ctf): Likewise.
binutils/objdump.c
binutils/readelf.c