Fix memory leak in ld ARM backend
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 6 Apr 2016 08:26:42 +0000 (09:26 +0100)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 6 Apr 2016 08:28:12 +0000 (09:28 +0100)
commit15dd01b1209ec92b361dd2547708dd17ffc2a786
tree815d7dca3334989da130bccb43b952ac5713af26
parentac17fda08bf2a75ba561a919f05df95ff07959de
Fix memory leak in ld ARM backend

2016-04-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>

bfd/
* elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
a fall through from error_ret_free_internal.  Free local_syms in
error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
bfd/ChangeLog
bfd/elf32-arm.c