fftools/opt_common: Fix leak on error

Fixes Coverity issue #743443.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/389/head
Andreas Rheinhardt 2 years ago
parent 2654347d7a
commit 0368ded1a9
  1. 1
      fftools/opt_common.c

@ -1165,6 +1165,7 @@ int init_report(const char *env, FILE **file)
av_log(NULL, AV_LOG_FATAL, "Invalid report file level\n");
av_free(key);
av_free(val);
av_free(filename_template);
return AVERROR(EINVAL);
}
envlevel = 1;

Loading…
Cancel
Save