[FFmpeg-cvslog] avcodec/rl2: clear freed pointers

Michael Niedermayer git at videolan.org
Mon Nov 17 00:02:53 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 16 23:34:40 2014 +0100| [00672d2ce5135ccc165f327ad70aa9f4f6cfc0ec] | committer: Michael Niedermayer

avcodec/rl2: clear freed pointers

Avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=00672d2ce5135ccc165f327ad70aa9f4f6cfc0ec
---

 libavcodec/rl2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rl2.c b/libavcodec/rl2.c
index 6e63ed1..eaf31b6 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;
 }



More information about the ffmpeg-cvslog mailing list