ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Fri Feb 3 19:37:18 2017 +0100| [3edbc2408b69eda763556de2a1bd129f180d5ed9] | committer: Michael Niedermayer
avfilter/vf_ciescope: Free out AVFrame on error Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3edbc2408b69eda763556de2a1bd129f180d5ed9 --- libavfilter/vf_ciescope.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_ciescope.c b/libavfilter/vf_ciescope.c index 450c17b..7c0cfed 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++) { _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
