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

Sebastian Ramacher git at videolan.org
Sun Nov 12 19:51:17 EET 2023


ffmpeg | branch: release/6.1 | Sebastian Ramacher <sramacher at debian.org> | Sun Nov 12 18:46:28 2023 +0100| [c7fe7ee8d4dcae510453abedabae53e45135144a] | committer: James Almer

avcoded/fft: Fix memory leak if ctx2 is used

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 250471ea1745fc703eb346a2a662304536a311b1)

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

 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