diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-22 20:28:25 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-23 17:55:38 +0200 |
commit | 2a44c4bc9e2623e623981efe9f2510a45fce84f1 (patch) | |
tree | cff9c767bfb9ca54c8627974485c60bd69c1925f /fftools | |
parent | e9e37ea2f111cefa8654367cb3f920c1997e3760 (diff) | |
download | ffmpeg-2a44c4bc9e2623e623981efe9f2510a45fce84f1.tar.gz |
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>
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg_mux_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c index 86521417ec..0289cdabad 100644 --- a/fftools/ffmpeg_mux_init.c +++ b/fftools/ffmpeg_mux_init.c @@ -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]; |