diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-08 16:09:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-08 16:09:23 +0200 |
commit | fa8c6c13505cdea7ca7df44ac5a801962ebba1d2 (patch) | |
tree | 84bb5b1816cb41af722c3e6ae3bf88667f5a3318 | |
parent | f66fed6c429949fe2dc4ae34c35d2f19ac8be7e1 (diff) | |
download | ffmpeg-fa8c6c13505cdea7ca7df44ac5a801962ebba1d2.tar.gz |
avcodec/atrac3plusdec: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/atrac3plusdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |