Close file on error path.
This commit is contained in:
parent
9c60417f73
commit
3445483e78
|
@ -159,6 +159,7 @@ main(int argc, char **argv)
|
|||
|
||||
if (br < 0) {
|
||||
printf("Error reading input: %s\n", strerror(errno));
|
||||
fclose(f);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue