use XNEW and related macros more
[deliverable/binutils-gdb.git] / gas / config / tc-tilegx.c
index bd4293942e50fb003aebb5f779bec8a101a17aeb..aca7f5630678bcd45a736b1828f68a656fcf53ad 100644 (file)
@@ -1735,8 +1735,8 @@ tc_gen_reloc (asection *sec 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.023231 seconds and 4 git commands to generate.