From: Eric Sandeen Date: Fri, 16 Sep 2011 20:49:35 +0000 (-0500) Subject: test_icount: fclose() before exit X-Git-Tag: v1.42-WIP-0925~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf0739dc040099f1ce6ac03ea6d9a2781aef734;p=thirdparty%2Fe2fsprogs.git test_icount: fclose() before exit Just to be tidy. Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o --- diff --git a/tests/progs/test_icount.c b/tests/progs/test_icount.c index 777a8123e..017cc4d82 100644 --- a/tests/progs/test_icount.c +++ b/tests/progs/test_icount.c @@ -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; }