aboutsummaryrefslogtreecommitdiffstats
path: root/fftools
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-07-22 20:41:04 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-07-23 17:55:38 +0200
commit0368ded1a9fab23077cfc50f8878a0193dfd0510 (patch)
tree13f109c25cf304ca7815ce992456cf5ba341025b /fftools
parent2654347d7adba61ab8a8cce470d657958f6f00f9 (diff)
downloadffmpeg-0368ded1a9fab23077cfc50f8878a0193dfd0510.tar.gz
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>
Diffstat (limited to 'fftools')
-rw-r--r--fftools/opt_common.c1
1 files changed, 1 insertions, 0 deletions
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;