use XNEW and related macros more
[deliverable/binutils-gdb.git] / gas / config / tc-vax.c
index 538a9941d583ef90df210c213bcf8cc7e4ed8abd..33ef6e3f0f460f0b0e8f948fdb1aebd8d7c9d8fd 100644 (file)
@@ -2388,8 +2388,8 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
 #undef F
 #undef MAP
 
-  reloc = xmalloc (sizeof (arelent));
-  reloc->sym_ptr_ptr = 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;
 #ifndef OBJ_ELF
This page took 0.023432 seconds and 4 git commands to generate.