mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/bfi: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e97f38ce63
commit
f66fed6c42
@ -171,7 +171,7 @@ static int bfi_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
static av_cold int bfi_decode_close(AVCodecContext *avctx)
|
static av_cold int bfi_decode_close(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
BFIContext *bfi = avctx->priv_data;
|
BFIContext *bfi = avctx->priv_data;
|
||||||
av_free(bfi->dst);
|
av_freep(&bfi->dst);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user