From bdb31942174c4673c7f212378951366e0704668d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 18 Feb 2015 13:12:06 +0100 Subject: avfilter/vf_qp: Fix leak of out_qp_table_buf Fixes CID1270821 Signed-off-by: Michael Niedermayer --- libavfilter/vf_qp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavfilter') diff --git a/libavfilter/vf_qp.c b/libavfilter/vf_qp.c index 9c0679a70f..d9766344c9 100644 --- a/libavfilter/vf_qp.c +++ b/libavfilter/vf_qp.c @@ -95,6 +95,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) out = av_frame_clone(in); if (!out) { + av_buffer_unref(&out_qp_table_buf); ret = AVERROR(ENOMEM); goto fail; } -- cgit v1.2.3