elf32_arm_get_synthetic_symtab memory leak
authorAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2023 05:03:59 +0000 (14:33 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2023 06:19:39 +0000 (15:49 +0930)
commit08edd976116312550831cdfd3b5a4b069bdcca80
tree282512b430114071c32d454caa20a15a43b1aefc
parent9a925d0dad55a3cd4e493642b81c668d2ab09d1d
elf32_arm_get_synthetic_symtab memory leak

ARM get_synthetic_symtab reads .plt and caches that data.  Caching the
data doesn't make a lot of sense since get_synthetic_symtab is only
called once per bfd, and the memory might be put to better use.  It
also leaks on closing the bfd.

* elf32-arm.c (elf32_arm_get_synthetic_symtab): Don't cache
plt contents.  Free plt data before returning.
bfd/elf32-arm.c