aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--imap-send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c
index c0130d0e02..fb2506dbef 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1543,6 +1543,7 @@ int cmd_main(int argc, const char **argv)
}
if (all_msgs.len == 0) {
+ strbuf_release(&all_msgs);
fprintf(stderr, "nothing to send\n");
return 1;
}