mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/tta: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
beec818d99
commit
b9792afad1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user