]> git.sesse.net Git - ffmpeg/commitdiff
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 cbbf040c797530f97a3cb545c34e6b3e6f3d58b0..af32eae08e511b2a895b7cc2c1c6a92100c24d2e 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;