use XNEW and related macros more
[deliverable/binutils-gdb.git] / gas / config / tc-bfin.c
index 8cf2d5b85d058b0092faca207b91d98827d6c2a8..8958c7e795b6929a47629a1b6c3a9ae3169b84f9 100644 (file)
@@ -811,8 +811,8 @@ tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp)
 {
   arelent *reloc;
 
-  reloc                      = (arelent *) xmalloc (sizeof (arelent));
-  reloc->sym_ptr_ptr  = (asymbol **) xmalloc (sizeof (asymbol *));
+  reloc                      = XNEW (arelent);
+  reloc->sym_ptr_ptr  = XNEW (asymbol *);
   *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
   reloc->address      = fixp->fx_frag->fr_address + fixp->fx_where;
 
This page took 0.024852 seconds and 4 git commands to generate.