From 142e138543bb4e317375dcc7feb0a5ed8bc1ed89 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 24 Oct 2015 10:03:14 +0000 Subject: [PATCH] Closing output file pointer of telltoc --read_and_print. Coverity CID 21813. --- test/telltoc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/telltoc.c b/test/telltoc.c index fdba448..34c76f7 100644 --- a/test/telltoc.c +++ b/test/telltoc.c @@ -774,6 +774,8 @@ print_result:; start_sector, sector_count, (int) (total_count / (off_t) sector_size)); + if (raw_fp != NULL) + fclose(raw_fp); return ret; }