X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-tag.c;h=130de6343f8ec42bac91c7b6114e83ab2a4f854c;hb=f2ed177e6260d835b8a13d2a53e1c8d5fa76edf2;hp=9c03754d58568a04f9a7971d2296ab014c19f054;hpb=1ec634461ea25d87cc16dbeb1318f8e30a07c9f1;p=notmuch diff --git a/notmuch-tag.c b/notmuch-tag.c index 9c03754d..130de634 100644 --- a/notmuch-tag.c +++ b/notmuch-tag.c @@ -235,6 +235,8 @@ notmuch_tag_command (notmuch_config_t *config, int argc, char *argv[]) if (batch) { if (opt_index != argc) { fprintf (stderr, "Can't specify both cmdline and stdin!\n"); + if (input) + fclose (input); return EXIT_FAILURE; } } else {