You've already forked FFmpeg
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user