[FFmpeg-cvslog] avfilter/avf_aphasemeter: fix memleaks

Paul B Mahol git at videolan.org
Wed Jan 4 14:25:52 EET 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jan  4 13:15:19 2017 +0100| [72d61015109e39e46d8e1f8becffe6d442f3ac05] | committer: Paul B Mahol

avfilter/avf_aphasemeter: fix memleaks

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72d61015109e39e46d8e1f8becffe6d442f3ac05
---

 libavfilter/avf_aphasemeter.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c
index fb5c1d4..bfd7786 100644
--- a/libavfilter/avf_aphasemeter.c
+++ b/libavfilter/avf_aphasemeter.c
@@ -222,8 +222,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
 static av_cold void uninit(AVFilterContext *ctx)
 {
     AudioPhaseMeterContext *s = ctx->priv;
+    int i;
 
     av_frame_free(&s->out);
+    for (i = 0; i < ctx->nb_outputs; i++)
+        av_freep(&ctx->output_pads[i].name);
 }
 
 static av_cold int init(AVFilterContext *ctx)



More information about the ffmpeg-cvslog mailing list