use my usual API's for allocation/deallocation right now.
[apps/madmutt.git] / compose.c
index 5b3687a..3d5f39c 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -328,7 +328,7 @@ static int edit_address_list (int line, address_t ** addr)
   mutt_addrlist_to_local (*addr);
   rfc822_write_address (buf, sizeof (buf), *addr, 0);
   if (mutt_get_field (Prompts[line - 1], buf, sizeof (buf), M_ALIAS) == 0) {
-    rfc822_free_address (addr);
+    address_delete (addr);
     *addr = mutt_parse_adrlist (*addr, buf);
     *addr = mutt_expand_aliases (*addr);
   }