From 44e700ff78a39582e9c17d3f0b6095f9e9eaccd7 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 19 Dec 2018 18:48:04 -0800 Subject: [PATCH] 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 --- send.c | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.50.1