diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-03 21:37:18 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-03 23:52:22 +0300 |
commit | 3edbc2408b69eda763556de2a1bd129f180d5ed9 (patch) | |
tree | 02b55f796c901d1feb2a382873b33219eb4340a8 | |
parent | c331be21c48a8d273feb0c0131dc524d2c2fc3da (diff) |
avfilter/vf_ciescope: Free out AVFrame on error
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavfilter/vf_ciescope.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_ciescope.c b/libavfilter/vf_ciescope.c index 450c17b126..7c0cfed061 100644 --- a/libavfilter/vf_ciescope.c +++ b/libavfilter/vf_ciescope.c @@ -1369,8 +1369,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) if (!s->background) { ret = draw_background(ctx); - if (ret < 0) + if (ret < 0) { + av_frame_free(&out); return ret; + } s->background = 1; } for (y = 0; y < outlink->h; y++) { |