aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-16 23:34:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-16 23:48:38 +0100
commit00672d2ce5135ccc165f327ad70aa9f4f6cfc0ec (patch)
tree8fa4a3eaf3d21162a84c14d9247fbc6953f4c0a0
parent51ddaf65496bc8a7d3f62cafec5c08dc4e55909f (diff)
downloadffmpeg-00672d2ce5135ccc165f327ad70aa9f4f6cfc0ec.tar.gz
avcodec/rl2: clear freed pointers
Avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/rl2.c2
1 files changed, 1 insertions, 1 deletions
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;
}