diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-21 18:02:01 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-21 18:03:27 +0100 |
commit | 2ae2c60554c2731e21a41c3f32a225f0a9fb9b26 (patch) | |
tree | a3514953eecc9c2823d82226a0c85f4efe17cd7d /libavcodec/vp6.c | |
parent | 6995be43aee561b04e13b60d65d5503fbe5d2647 (diff) | |
download | ffmpeg-2ae2c60554c2731e21a41c3f32a225f0a9fb9b26.tar.gz |
avcodec/vp6: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r-- | libavcodec/vp6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index a18b8ff523..e97ef76d1e 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -651,7 +651,7 @@ static av_cold int vp6_decode_free(AVCodecContext *avctx) if (s->alpha_context) { ff_vp56_free_context(s->alpha_context); vp6_decode_free_context(s->alpha_context); - av_free(s->alpha_context); + av_freep(&s->alpha_context); } return 0; |