mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01: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:
parent
2654347d7a
commit
0368ded1a9
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue