From 0368ded1a9fab23077cfc50f8878a0193dfd0510 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 22 Jul 2023 20:41:04 +0200 Subject: [PATCH] fftools/opt_common: Fix leak on error Fixes Coverity issue #743443. Reviewed-by: Anton Khirnov Signed-off-by: Andreas Rheinhardt --- fftools/opt_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fftools/opt_common.c b/fftools/opt_common.c index 913932c914..7c996f140d 100644 --- a/fftools/opt_common.c +++ b/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;