asan: _bfd_elf_slurp_version_tables memory leak
authorAlan Modra <amodra@gmail.com>
Tue, 24 Oct 2023 07:07:24 +0000 (17:37 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 25 Oct 2023 00:42:11 +0000 (11:12 +1030)
commit7ac6d0c38c365a6778a91fd37203c21561c61c4c
treeacf6d1da0ba0777bd1188be1d22819bf1cc11414
parent220be060180d14a0512bfb39b22341a7368822ae
asan: _bfd_elf_slurp_version_tables memory leak

Extends commit 6136093c0d00 to handle verdefs as well as verrefs.

PR 30886
* elf.c (_bfd_elf_slurp_version_tables): See free_contents for
verdefs too.  Use free_contents rather than elf_tdata fields.
bfd/elf.c