summaryrefslogtreecommitdiff
path: root/libavcodec/atrac3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-10 17:09:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-10 17:10:02 +0200
commitea77d3b889acf63658966a1546abc2d83e5c5990 (patch)
tree5b4667a668dc5546b7aeaae978e4098839b6a6aa /libavcodec/atrac3.c
parent3537ddb76f3a57f03f95da09dfb0bb2bc2b3e26d (diff)
avcodec/atrac3: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r--libavcodec/atrac3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index d1dfa6b0ed..d9f1348d23 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -190,8 +190,8 @@ static av_cold int atrac3_decode_close(AVCodecContext *avctx)
{
ATRAC3Context *q = avctx->priv_data;
- av_free(q->units);
- av_free(q->decoded_bytes_buffer);
+ av_freep(&q->units);
+ av_freep(&q->decoded_bytes_buffer);
ff_mdct_end(&q->mdct_ctx);