You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
committed by
Michael Niedermayer
parent
f707c84b8b
commit
21265f42ec
@@ -3278,6 +3278,7 @@ static int open_files(OptionGroupList *l, const char *inout,
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "Error parsing options for %s file "
|
av_log(NULL, AV_LOG_ERROR, "Error parsing options for %s file "
|
||||||
"%s.\n", inout, g->arg);
|
"%s.\n", inout, g->arg);
|
||||||
|
uninit_options(&o);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user