mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
fftools/ffmpeg_mux_init: Fix leak on error
Fixes Coverity issue #1539098. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
e9e37ea2f1
commit
2a44c4bc9e
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ static int enc_stats_init(OutputStream *ost, EncStats *es, int pre,
|
|||
|
||||
ret = GROW_ARRAY(es->components, es->nb_components);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
goto fail;
|
||||
|
||||
c = &es->components[es->nb_components - 1];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue