X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mime%2Frfc822address.c;h=a76fd25d2d74c9be77905d5e539c2bac8a889c06;hb=c01e17f6b99066ca30931a082ea855656174619b;hp=0b06c0530dd27a2499e01147223f036e225fcef2;hpb=0f6739c5be4203bec0fa32962e6ab13349da703b;p=apps%2Fmadmutt.git diff --git a/lib-mime/rfc822address.c b/lib-mime/rfc822address.c index 0b06c05..a76fd25 100644 --- a/lib-mime/rfc822address.c +++ b/lib-mime/rfc822address.c @@ -250,7 +250,7 @@ address_t **rfc822_eotoken(address_t **last, static_buf *phrase, static_buf *com s = parse_address(phrase->buf, comment, cur); if (s && *s && *s != ',' && *s != ';') { - address_delete(&cur); + address_list_wipe(&cur); return last; } @@ -281,7 +281,7 @@ address_t *rfc822_parse_adrlist(address_t *top, const char *s) stbuf_append_sp(&phrase); s = next_phrase(s, &phrase); if (!s) { - address_delete(&top); + address_list_wipe(&top); return NULL; } continue; @@ -290,7 +290,7 @@ address_t *rfc822_parse_adrlist(address_t *top, const char *s) stbuf_append_sp(&comment); s = parse_comment(s + 1, &comment); if (!s) { - address_delete(&top); + address_list_wipe(&top); return NULL; } continue; @@ -305,8 +305,8 @@ address_t *rfc822_parse_adrlist(address_t *top, const char *s) s = parse_address(skipspaces(s + 1), &comment, cur); if (!s || *s != '>' || !cur->mailbox) { - address_delete(&top); - address_delete(&cur); + address_list_wipe(&top); + address_list_wipe(&cur); return NULL; }