aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-10 16:57:13 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:57 +0100
commitd0a8273efeb9acf149e0e4780d57936130cc9814 (patch)
treeb2cf6daefe10a36b0e2fbae66ed8d32bcfa5364a
parente434e138924cf0d30936583e20db709aed92081f (diff)
downloadffmpeg-d0a8273efeb9acf149e0e4780d57936130cc9814.tar.gz
avfilter/vf_uspp: Fix potential leak of dict on error
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 8443848dfc632334439d4eae7e446167682a4ddb)
-rw-r--r--libavfilter/vf_uspp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c
index da4029f4b2..ff15d9c6c5 100644
--- a/libavfilter/vf_uspp.c
+++ b/libavfilter/vf_uspp.c
@@ -362,9 +362,9 @@ static int config_input(AVFilterLink *inlink)
avctx_enc->global_quality = 123;
av_dict_set(&opts, "no_bitstream", "1", 0);
ret = avcodec_open2(avctx_enc, enc, &opts);
+ av_dict_free(&opts);
if (ret < 0)
return ret;
- av_dict_free(&opts);
av_assert0(avctx_enc->codec);
}