mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
2654347d7a
commit
0368ded1a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue