[FFmpeg-cvslog] avfilter/af_afftfilt: fix memory leaks

Paul B Mahol git at videolan.org
Sun Jun 4 23:53:31 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jun  4 22:51:57 2017 +0200| [67162554d458c12f73c9461d5e661445693a201c] | committer: Paul B Mahol

avfilter/af_afftfilt: fix memory leaks

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

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

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

diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c
index 3fc1a1b4c9..d166fa4190 100644
--- a/libavfilter/af_afftfilt.c
+++ b/libavfilter/af_afftfilt.c
@@ -371,6 +371,9 @@ static av_cold void uninit(AVFilterContext *ctx)
     av_freep(&s->real);
     av_freep(&s->imag);
     av_frame_free(&s->buffer);
+    av_freep(&s->window_func_lut);
+
+    av_audio_fifo_free(s->fifo);
 }
 
 static const AVFilterPad inputs[] = {



More information about the ffmpeg-cvslog mailing list