diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-02-28 22:06:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-05-04 19:28:19 +0200 |
commit | 6f6036146d5808f4663d7e6e1b614ea23b8f2592 (patch) | |
tree | 31b22573df3137dd03987cd134cf9ea76bf330aa | |
parent | 222783e2faeda088a6289931da1b038f3486ee33 (diff) | |
download | ffmpeg-6f6036146d5808f4663d7e6e1b614ea23b8f2592.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>
-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 dcfaa06926..6aed8b65d8 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -3275,6 +3275,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; } |