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: mutt-1-12-rel~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2f5faea8194a1dd4a0bb6c557510f6c0d398d94;p=mutt Fix flags if mutt_get_postponed() has no messages. Flags needs to be reset so memory cleanup is done at the end. --- diff --git a/send.c b/send.c index 5f4703c2..975425c9 100644 --- a/send.c +++ b/send.c @@ -1466,7 +1466,10 @@ ci_send_message (int flags, /* send mode */ if (flags == SENDPOSTPONED) { if ((flags = mutt_get_postponed (ctx, msg, &cur, fcc, sizeof (fcc))) < 0) + { + flags = SENDPOSTPONED; goto cleanup; + } } if (flags & (SENDPOSTPONED|SENDRESEND))