Commit fa8c6c13 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/atrac3plusdec: use av_freep(), do not leave stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f66fed6c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment