2002-04-23 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / bfd / elfxx-mips.c
index 7cfa733472fc0db0c224907d710870bd540e90ce..90426c437c9618817c9391082d3606c573ecb19c 100644 (file)
@@ -6750,14 +6750,14 @@ _bfd_mips_elf_link_hash_table_create (abfd)
   struct mips_elf_link_hash_table *ret;
   bfd_size_type amt = sizeof (struct mips_elf_link_hash_table);
 
-  ret = (struct mips_elf_link_hash_table *) bfd_alloc (abfd, amt);
+  ret = (struct mips_elf_link_hash_table *) bfd_malloc (amt);
   if (ret == (struct mips_elf_link_hash_table *) NULL)
     return NULL;
 
   if (! _bfd_elf_link_hash_table_init (&ret->root, abfd,
                                       mips_elf_link_hash_newfunc))
     {
-      bfd_release (abfd, ret);
+      free (ret);
       return NULL;
     }
 
This page took 0.023817 seconds and 4 git commands to generate.