avfilter/vf_eq: fix leak of input frame
authorPaul B Mahol <onemda@gmail.com>
Mon, 26 Jan 2015 09:43:51 +0000 (09:43 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 26 Jan 2015 09:43:51 +0000 (09:43 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_eq.c

index 60822df..0c2f0ce 100644 (file)
@@ -214,6 +214,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
                                 in->data[i], in->linesize[i], w, h);
     }
 
+    av_frame_free(&in);
     return ff_filter_frame(outlink, out);
 }
 static const AVFilterPad eq_inputs[] = {