]> git.cworth.org Git - notmuch/blobdiff - notmuch-tag.c
cppcheck: close files during shutdown
[notmuch] / notmuch-tag.c
index 9c03754d58568a04f9a7971d2296ab014c19f054..130de6343f8ec42bac91c7b6114e83ab2a4f854c 100644 (file)
@@ -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 {