diff options
Diffstat (limited to 'gas/config/tc-visium.c')
-rw-r--r-- | gas/config/tc-visium.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-visium.c b/gas/config/tc-visium.c index c618524..7f00cbf 100644 --- a/gas/config/tc-visium.c +++ b/gas/config/tc-visium.c @@ -112,9 +112,9 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp) arelent *reloc; bfd_reloc_code_real_type code; - reloc = (arelent *) xmalloc (sizeof (arelent)); + reloc = XNEW (arelent); - reloc->sym_ptr_ptr = (asymbol **) xmalloc (sizeof (asymbol *)); + 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; |