diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-02-28 22:06:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-02-29 22:31:01 +0100 |
commit | 21265f42ecb265debe9fec1dbfd0cb7de5a8aefb (patch) | |
tree | 078ac6ed09745ccd64a2c712350d944b234f312f /fftools/ffmpeg_opt.c | |
parent | f707c84b8b89a937cc388e5ae4b8fcd67e07b75c (diff) | |
download | ffmpeg-21265f42ecb265debe9fec1dbfd0cb7de5a8aefb.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>
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 12d44886ee..3bf90bd20c 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -3278,6 +3278,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; } |