From: Kevin McCarthy Date: Thu, 20 Dec 2018 02:48:04 +0000 (-0800) Subject: Fix flags if mutt_get_postponed() has no messages X-Git-Tag: 2019-10-25~396^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44e700ff78a39582e9c17d3f0b6095f9e9eaccd7;p=neomutt Fix flags if mutt_get_postponed() has no messages Flags needs to be reset so memory cleanup is done at the end. Co-authored-by: Richard Russon --- diff --git a/send.c b/send.c index 2169830a2..56d8d18ba 100644 --- a/send.c +++ b/send.c @@ -1804,7 +1804,10 @@ int ci_send_message(int flags, struct Email *msg, const char *tempfile, { flags = mutt_get_postponed(ctx, msg, &cur, fcc, sizeof(fcc)); if (flags < 0) + { + flags = SEND_POSTPONED; goto cleanup; + } #ifdef USE_NNTP /* If postponed message is a news article, it have * a "Newsgroups:" header line, then set appropriate flag.