diff options
author | Alan Modra <amodra@gmail.com> | 2013-02-10 04:01:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-02-10 04:01:15 +0000 |
commit | 22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b (patch) | |
tree | 2532f5f4a13fb7f0e699b45bf644dabc8a2f2cc0 /bfd/elf64-hppa.c | |
parent | 0e5de31a6cfc218ea24a2c750921f7411c4e5c01 (diff) | |
download | gdb-22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b.zip gdb-22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b.tar.gz gdb-22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b.tar.bz2 |
* i386linux.c (linux_link_hash_table_create): Allocate table
with bfd_zmalloc, not bfd_alloc.
* pdp11.c (link_hash_table_create): Allocate table with
bfd_malloc, not bfd_alloc.
* elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
with bfd_zmalloc, not bfd_zalloc.
(bfin_link_hash_table_create): Likewise.
* elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
* elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r-- | bfd/elf64-hppa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 7f1b9e2..0d5fa6e 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -299,7 +299,7 @@ elf64_hppa_hash_table_create (bfd *abfd) struct elf64_hppa_link_hash_table *htab; bfd_size_type amt = sizeof (*htab); - htab = bfd_zalloc (abfd, amt); + htab = bfd_zmalloc (amt); if (htab == NULL) return NULL; @@ -308,7 +308,7 @@ elf64_hppa_hash_table_create (bfd *abfd) sizeof (struct elf64_hppa_link_hash_entry), HPPA64_ELF_DATA)) { - bfd_release (abfd, htab); + free (htab); return NULL; } |