X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-tag.c;h=130de6343f8ec42bac91c7b6114e83ab2a4f854c;hp=9c03754d58568a04f9a7971d2296ab014c19f054;hb=43668950626f347f05aad7d49cd9ea4383030443;hpb=86cbd215eb67d7b996c977352a50e70c101cb641 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 {