insn_templates **slot = NULL;
insn_templates *new_entry;
- new_entry = xmalloc (sizeof (insn_templates));
+ new_entry = XNEW (insn_templates);
new_entry->template = template;
new_entry->next = NULL;
{
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;