X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-count.c;fp=notmuch-count.c;h=97281374b22252059fcbf65ff28d426615b2a632;hp=50b0c193f04625c794b9ab9287ab6bdd9c4f29da;hb=c960bb4686429b220419f6d45ede920d6c14c3c5;hpb=af64530d3f93dd1c379ad3ba93608ca5ad700598 diff --git a/notmuch-count.c b/notmuch-count.c index 50b0c193..97281374 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -204,6 +204,8 @@ notmuch_count_command (notmuch_config_t *config, int argc, char *argv[]) if (batch && opt_index != argc) { fprintf (stderr, "--batch and query string are not compatible\n"); + if (input) + fclose (input); return EXIT_FAILURE; }