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