[FFmpeg-cvslog] fftools/opt_common: Fix leak on error
Andreas Rheinhardt
git at videolan.org
Sun Jul 23 18:55:02 EEST 2023
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Jul 22 20:41:04 2023 +0200| [0368ded1a9fab23077cfc50f8878a0193dfd0510] | committer: Andreas Rheinhardt
fftools/opt_common: Fix leak on error
Fixes Coverity issue #743443.
Reviewed-by: Anton Khirnov <anton at khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0368ded1a9fab23077cfc50f8878a0193dfd0510
---
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;
More information about the ffmpeg-cvslog
mailing list