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:
Andreas Rheinhardt 2023-07-22 20:28:25 +02:00
parent e9e37ea2f1
commit 2a44c4bc9e

View File

@ -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];