PR23952, memory leak in _bfd_generic_read_minisymbols
authorAlan Modra <amodra@gmail.com>
Fri, 7 Dec 2018 13:09:42 +0000 (23:39 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 7 Dec 2018 13:41:16 +0000 (00:11 +1030)
commitc2f5dc30afa34696f2da0081c4ac50b958ecb0e9
tree2dd48a0c34c7f6284e565185c0165ddffd3a86d6
parentaf03af8f55f2536b6e20928e6b1fa0324a5f3d6e
PR23952, memory leak in _bfd_generic_read_minisymbols

bfd/
PR 23952
* syms.c (_bfd_generic_read_minisymbols): Free syms before
returning with zero symcount.
binutils/
* nm.c (display_rel_file): Use xrealloc to increase minisyms
for synthetic symbols.
bfd/ChangeLog
bfd/syms.c
binutils/ChangeLog
binutils/nm.c