avcodec/rl2: clear freed pointers
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Nov 2014 22:34:40 +0000 (23:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Nov 2014 22:48:38 +0000 (23:48 +0100)
Avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/rl2.c

index 6e63ed1..eaf31b6 100644 (file)
@@ -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;
 }