[FFmpeg-devel] [PATCH 3/3] avcoded/fft: Fix memory leak if ctx2 is used
Sebastian Ramacher
sramacher at debian.org
Sun Nov 12 17:11:44 EET 2023
---
libavcodec/avfft.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/avfft.c b/libavcodec/avfft.c
index 813b6d61a1..1b8d6f76c3 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);
}
--
2.42.0
More information about the ffmpeg-devel
mailing list