From fa8c6c13505cdea7ca7df44ac5a801962ebba1d2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 8 Oct 2014 16:09:05 +0200 Subject: avcodec/atrac3plusdec: use av_freep(), do not leave stale pointers in memory Signed-off-by: Michael Niedermayer --- libavcodec/atrac3plusdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/atrac3plusdec.c b/libavcodec/atrac3plusdec.c index 3a6b3cfa2e..3699580a13 100644 --- a/libavcodec/atrac3plusdec.c +++ b/libavcodec/atrac3plusdec.c @@ -67,7 +67,7 @@ typedef struct ATRAC3PContext { static av_cold int atrac3p_decode_close(AVCodecContext *avctx) { - av_free(((ATRAC3PContext *)(avctx->priv_data))->ch_units); + av_freep(&((ATRAC3PContext *)(avctx->priv_data))->ch_units); return 0; } -- cgit v1.2.3