From 7213d3fbf30b6be53c272c1c61c797a2b7b697a0 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michael@niedermayer.cc>
Date: Sat, 5 Sep 2015 15:32:00 +0200
Subject: [PATCH] avfilter/avf_showfreqs: Free fin

Fixes CID1322345

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavfilter/avf_showfreqs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c
index cbbf040c797..af32eae08e5 100644
--- a/libavfilter/avf_showfreqs.c
+++ b/libavfilter/avf_showfreqs.c
@@ -501,6 +501,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
             goto fail;
 
         ret = plot_freqs(inlink, fin);
+        av_frame_free(&fin);
         av_audio_fifo_drain(s->fifo, s->skip_samples);
         if (ret < 0)
             goto fail;
-- 
GitLab