]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ELF sec_info memory leaks
authorAlan Modra <amodra@gmail.com>
Sat, 4 Jan 2025 03:09:20 +0000 (13:39 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 4 Jan 2025 08:45:56 +0000 (19:15 +1030)
commit003ced705f6d4c10b7f0fb96acf7ec2db58f902e
treeaf8b13a906b8bdb588e211fe6ff303f049f87c1d
parentc232d080c4f05b16e998bd49d6e2d92c56b6421e
ELF sec_info memory leaks

Use the bfd's objalloc memory so we don't need to free anything
attached to elf_section_data sec_info.  Other uses of sec_info that
need to allocate memory already use bfd_alloc.

* elf-eh-frame.c (_bfd_elf_parse_eh_frame): bfd_alloc sec_info.
* elf-sframe.c (_bfd_elf_parse_sframe): Likewise.
bfd/elf-eh-frame.c
bfd/elf-sframe.c