aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-02-28 22:06:29 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2022-05-04 19:28:24 +0200
commitee92ee3b5a80e3a0c12567efc9761343d0155c21 (patch)
tree7a82ac12a61171c5e29546455efd52e839a95253 /ffmpeg_opt.c
parente998d8c90da1f41eeecd4144441d37a5168fecb8 (diff)
downloadffmpeg-ee92ee3b5a80e3a0c12567efc9761343d0155c21.tar.gz
fftools/ffmpeg_opt: Fix leak of options when parsing options fails
Fixes #8094. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 21265f42ecb265debe9fec1dbfd0cb7de5a8aefb) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index bd55fb6a31..2d630ad673 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -3132,6 +3132,7 @@ static int open_files(OptionGroupList *l, const char *inout,
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error parsing options for %s file "
"%s.\n", inout, g->arg);
+ uninit_options(&o);
return ret;
}