summaryrefslogtreecommitdiffstats
path: root/source/l/ffmpeg/250471ea1745fc703eb346a2a662304536a311b1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/ffmpeg/250471ea1745fc703eb346a2a662304536a311b1.patch')
-rw-r--r--source/l/ffmpeg/250471ea1745fc703eb346a2a662304536a311b1.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/l/ffmpeg/250471ea1745fc703eb346a2a662304536a311b1.patch b/source/l/ffmpeg/250471ea1745fc703eb346a2a662304536a311b1.patch
new file mode 100644
index 000000000..b735415ae
--- /dev/null
+++ b/source/l/ffmpeg/250471ea1745fc703eb346a2a662304536a311b1.patch
@@ -0,0 +1,25 @@
+From 250471ea1745fc703eb346a2a662304536a311b1 Mon Sep 17 00:00:00 2001
+From: Sebastian Ramacher <sramacher@debian.org>
+Date: Sun, 12 Nov 2023 18:46:28 +0100
+Subject: [PATCH] avcoded/fft: Fix memory leak if ctx2 is used
+
+Signed-off-by: James Almer <jamrial@gmail.com>
+---
+ 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);
+ }
+--
+2.25.1
+