]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
test_icount: fclose() before exit
authorEric Sandeen <sandeen@redhat.com>
Fri, 16 Sep 2011 20:49:35 +0000 (15:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Sep 2011 23:55:55 +0000 (19:55 -0400)
Just to be tidy.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/progs/test_icount.c

index 777a8123e9bf6a375d8d0e7d4b373c7e640c3652..017cc4d820b9339c0467bd37c6e80038d9c3f006 100644 (file)
@@ -289,6 +289,8 @@ static int source_file(const char *cmd_file, int sci_idx)
                        exit_status++;
                }
        }
+       if (f != stdin)
+               fclose(f);
        return exit_status;
 }