Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-21 20:02:01 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-11-21 20:03:27 +0300
commit2ae2c60554c2731e21a41c3f32a225f0a9fb9b26 (patch)
treea3514953eecc9c2823d82226a0c85f4efe17cd7d /libavcodec/vp6.c
parent6995be43aee561b04e13b60d65d5503fbe5d2647 (diff)
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.c2
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;