diff options
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; } |