diff --git a/src/cfg.c b/src/cfg.c index 874aa7d5..cfc2b88d 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -1098,6 +1098,7 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value) if (width > 10000 || height > 10000) { fprintf(stderr, "ROI dimensions exceed arbitrary value of 10000.\n"); + fclose(f); return 0; }