diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c index cbbf040c79..af32eae08e 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;