Skip to content

Commit

Permalink
output: fix closing output file
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAnno authored and Snaipe committed Jul 11, 2018
1 parent 15435c4 commit 9b70365
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/io/output.c
Expand Up @@ -135,6 +135,9 @@ void process_all_output(struct criterion_global_stats *stats)

criterion_pinfo(CRITERION_PREFIX_DASHES, _(msg_ok), name, path);
report(f, stats);

if (f != stdout && f != stderr)
fclose(f);
}
}
}

0 comments on commit 9b70365

Please sign in to comment.