if (!parse_addr_spec(phrase, comment, commentlen, commentmax, cur))
{
- mutt_addr_free(&cur);
+ free_address(&cur);
return;
}
return;
struct AddressList *al = mutt_addr_to_addresslist(*p);
- struct AddressNode *an, *tmp;
- TAILQ_FOREACH_SAFE(an, al, entries, tmp)
- {
- mutt_addresslist_free_one(al, an);
- }
+ mutt_addresslist_free(&al);
}
/**
if (!s)
{
mutt_addresslist_free(&al);
- mutt_addr_free(&a);
+ free_address(&a);
return NULL;
}
mutt_addresslist_append(al, a);