aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-xc16x.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-xc16x.c')
-rw-r--r--gas/config/tc-xc16x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-xc16x.c b/gas/config/tc-xc16x.c
index 1fb964b..49c0970 100644
--- a/gas/config/tc-xc16x.c
+++ b/gas/config/tc-xc16x.c
@@ -294,8 +294,8 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
}
}
- rel = xmalloc (sizeof (arelent));
- rel->sym_ptr_ptr = xmalloc (sizeof (asymbol *));
+ rel = XNEW (arelent);
+ rel->sym_ptr_ptr = XNEW (asymbol *);
*rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
rel->address = fixp->fx_frag->fr_address + fixp->fx_where;
rel->addend = fixp->fx_offset;