mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
26 lines
695 B
Diff
26 lines
695 B
Diff
|
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
|
||
|
|