Close file on error path.

This commit is contained in:
Michael Drake 2014-04-02 19:40:11 +01:00
parent 9c60417f73
commit 3445483e78
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ main(int argc, char **argv)
if (br < 0) {
printf("Error reading input: %s\n", strerror(errno));
fclose(f);
return 1;
}