mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/rl2: clear freed pointers
Avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
51ddaf6549
commit
00672d2ce5
@ -207,7 +207,7 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx)
|
|||||||
{
|
{
|
||||||
Rl2Context *s = avctx->priv_data;
|
Rl2Context *s = avctx->priv_data;
|
||||||
|
|
||||||
av_free(s->back_frame);
|
av_freep(&s->back_frame);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user