From 00672d2ce5135ccc165f327ad70aa9f4f6cfc0ec Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 16 Nov 2014 23:34:40 +0100 Subject: [PATCH] avcodec/rl2: clear freed pointers Avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavcodec/rl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/rl2.c b/libavcodec/rl2.c index 6e63ed148f..eaf31b63a0 100644 --- a/libavcodec/rl2.c +++ b/libavcodec/rl2.c @@ -207,7 +207,7 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx) { Rl2Context *s = avctx->priv_data; - av_free(s->back_frame); + av_freep(&s->back_frame); return 0; }