[FFmpeg-cvslog] avcoded/fft: Fix memory leak if ctx2 is used

Sebastian Ramacher git at videolan.org
Sun Nov 12 19:50:10 EET 2023


ffmpeg | branch: master | Sebastian Ramacher <sramacher at debian.org> | Sun Nov 12 18:46:28 2023 +0100| [250471ea1745fc703eb346a2a662304536a311b1] | committer: James Almer

avcoded/fft: Fix memory leak if ctx2 is used

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/avfft.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/avfft.c b/libavcodec/avfft.c
index 3ef076d222..999b5ed79a 100644
--- a/libavcodec/avfft.c
+++ b/libavcodec/avfft.c
@@ -130,6 +130,7 @@ av_cold void av_mdct_end(FFTContext *s)
 {
     if (s) {
         AVTXWrapper *w = (AVTXWrapper *)s;
+        av_tx_uninit(&w->ctx2);
         av_tx_uninit(&w->ctx);
         av_free(w);
     }



More information about the ffmpeg-cvslog mailing list