avfilter/avf_showfreqs: Free fin
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Sep 2015 13:32:00 +0000 (15:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Sep 2015 13:32:00 +0000 (15:32 +0200)
Fixes CID1322345

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_showfreqs.c

index cbbf040..af32eae 100644 (file)
@@ -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;