From 2bf0739dc040099f1ce6ac03ea6d9a2781aef734 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Fri, 16 Sep 2011 15:49:35 -0500 Subject: [PATCH] test_icount: fclose() before exit Just to be tidy. Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o --- tests/progs/test_icount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/progs/test_icount.c b/tests/progs/test_icount.c index 777a812..017cc4d 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; } -- 1.8.3.1