1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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>
This commit is contained in:
Andreas Rheinhardt
2023-07-22 20:41:04 +02:00
parent 2654347d7a
commit 0368ded1a9

View File

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