summaryrefslogtreecommitdiffstats
path: root/source/l/ffmpeg/250471ea1745fc703eb346a2a662304536a311b1.patch
blob: b735415ae5f29bc1ce932d91e74bbc751b52a62e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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