mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02: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
@ -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…
x
Reference in New Issue
Block a user