]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sframe memory leak
authorAlan Modra <amodra@gmail.com>
Sat, 11 Jan 2025 05:20:20 +0000 (15:50 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 15 Jan 2025 12:07:16 +0000 (22:37 +1030)
commit525e2ebb8946de9aa630910efa8bb633eceea2d7
tree94b6d75b93f6edc739c96c12c86ff7d2a8d42cf7
parent701fe09b0401a48a09d69c91f2acf3e7c4dd0e39
sframe memory leak

This is another case where an array isn't freed anywhere and needs to
persist a while, so allocate it with bfd_alloc.

* elf-sframe.c (sframe_decoder_init_func_bfdinfo): Add abfd
param.  bfd_zalloc std_func_bfdinfo.
(_bfd_elf_parse_sframe): Adjust to suit.
bfd/elf-sframe.c