[FFmpeg-devel] [PATCH v2 120/162] avcodec/atrac9dec: Replace av_free() by av_freep() in close function

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Nov 20 09:32:45 EET 2020


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavcodec/atrac9dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/atrac9dec.c b/libavcodec/atrac9dec.c
index 6849296ac0..f0fcd0cb13 100644
--- a/libavcodec/atrac9dec.c
+++ b/libavcodec/atrac9dec.c
@@ -833,7 +833,7 @@ static av_cold int atrac9_decode_close(AVCodecContext *avctx)
     ATRAC9Context *s = avctx->priv_data;
 
     ff_mdct_end(&s->imdct);
-    av_free(s->fdsp);
+    av_freep(&s->fdsp);
 
     return 0;
 }
-- 
2.25.1



More information about the ffmpeg-devel mailing list