diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-19 13:42:46 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-19 13:44:39 +0100 |
commit | b9792afad1c619f46f63ad4d977d6a2224bf4874 (patch) | |
tree | 23d38a64dabcd7e46cd6df5a9307be437fa5b900 /libavcodec/tta.c | |
parent | beec818d99e5951cd308ac64370639ad38ad9865 (diff) | |
download | ffmpeg-b9792afad1c619f46f63ad4d977d6a2224bf4874.tar.gz |
avcodec/tta: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r-- | libavcodec/tta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 5fdbac8d44..01584d957e 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -394,7 +394,7 @@ static av_cold int tta_decode_close(AVCodecContext *avctx) { TTAContext *s = avctx->priv_data; if (s->bps < 3) - av_free(s->decode_buffer); + av_freep(&s->decode_buffer); s->decode_buffer = NULL; av_freep(&s->ch_ctx); |