use XNEW and related macros more
[deliverable/binutils-gdb.git] / gas / config / tc-microblaze.c
index ceb4365c4e01b76914dec6c31f91700eea591217..b4985f09daecb190ab270c2464b794a338b53041 100644 (file)
@@ -2432,8 +2432,8 @@ tc_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp)
       break;
     }
 
-  rel = (arelent *) xmalloc (sizeof (arelent));
-  rel->sym_ptr_ptr = (asymbol **) xmalloc (sizeof (asymbol *));
+  rel = XNEW (arelent);
+  rel->sym_ptr_ptr = XNEW (asymbol *);
 
   if (code == BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM)
     *rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_subsy);
This page took 0.024198 seconds and 4 git commands to generate.