diff options
author | Sebastian Ramacher <sramacher@debian.org> | 2023-11-12 18:46:28 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-11-12 14:47:56 -0300 |
commit | 250471ea1745fc703eb346a2a662304536a311b1 (patch) | |
tree | 60c0117be0234b36ce55ce89f3800ea24374dfef | |
parent | a562cfee2e214252f8b3f516527272ae32ef9532 (diff) | |
download | ffmpeg-250471ea1745fc703eb346a2a662304536a311b1.tar.gz |
avcoded/fft: Fix memory leak if ctx2 is used
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/avfft.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |