mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/eamad: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8c4ca4aa5a
commit
c712d240b1
|
@ -329,7 +329,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
|
|||
{
|
||||
MadContext *t = avctx->priv_data;
|
||||
av_frame_free(&t->last_frame);
|
||||
av_free(t->bitstream_buf);
|
||||
av_freep(&t->bitstream_buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue