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