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;