From: Robert Schwebel Date: Fri, 6 Mar 2015 08:17:17 +0000 (+0100) Subject: janitorial: log2asc: properly close infile and outfile X-Git-Url: https://rtime.felk.cvut.cz/gitweb/can-utils.git/commitdiff_plain/b9f211319dcd4d1a2d76fef6da7e71d79fdc15ff?hp=dfabea61203a39d9b99c2a6bc01554adf16a6cb7 janitorial: log2asc: properly close infile and outfile Signed-off-by: Robert Schwebel Signed-off-by: Marc Kleine-Budde --- diff --git a/log2asc.c b/log2asc.c index 446c0b6..29d13e8 100644 --- a/log2asc.c +++ b/log2asc.c @@ -198,6 +198,8 @@ int main(int argc, char **argv) } } fflush(outfile); + fclose(outfile); + fclose(infile); return 0; }