mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
Close file on error
This commit is contained in:
parent
6be81959d5
commit
f9466efcbb
|
@ -1098,6 +1098,7 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
||||||
|
|
||||||
if (width > 10000 || height > 10000) {
|
if (width > 10000 || height > 10000) {
|
||||||
fprintf(stderr, "ROI dimensions exceed arbitrary value of 10000.\n");
|
fprintf(stderr, "ROI dimensions exceed arbitrary value of 10000.\n");
|
||||||
|
fclose(f);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue