mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
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) {
|
if (br < 0) {
|
||||||
printf("Error reading input: %s\n", strerror(errno));
|
printf("Error reading input: %s\n", strerror(errno));
|
||||||
|
fclose(f);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user