Fix PowerPC targets minor memory leaks found by Coverity
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 4 Feb 2014 19:17:16 +0000 (20:17 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 4 Feb 2014 19:17:16 +0000 (20:17 +0100)
commit2915c55b41d00f12ed6bc54b4160e3367065c1c8
treee14debda024e41d5fc7ec74415ae1304a747d7e5
parent591a12a1d4c8843343eb999145d8bcc1efedf408
Fix PowerPC targets minor memory leaks found by Coverity

bfd/
2014-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>

* coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in
return paths.  Three times.
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Free HTAB in all
return paths.
(ppc64_elf_tls_optimize): Free TOC_REF in return path.
(ppc64_elf_edit_toc): Free USED in return path.
bfd/ChangeLog
bfd/coff-rs6000.c
bfd/elf64-ppc.c