[FFmpeg-cvslog] avcodec/vp6: Use av_freep(), avoid leaving stale pointers
Michael Niedermayer
git at videolan.org
Fri Nov 21 18:51:01 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 21 18:02:01 2014 +0100| [2ae2c60554c2731e21a41c3f32a225f0a9fb9b26] | committer: Michael Niedermayer
avcodec/vp6: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ae2c60554c2731e21a41c3f32a225f0a9fb9b26
---
libavcodec/vp6.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c
index a18b8ff..e97ef76 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;
More information about the ffmpeg-cvslog
mailing list