[FFmpeg-cvslog] avcodec/bfi: use av_freep(), do not leave stale pointers in memory

Michael Niedermayer git at videolan.org
Wed Oct 8 16:16:16 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct  8 16:08:28 2014 +0200| [f66fed6c429949fe2dc4ae34c35d2f19ac8be7e1] | committer: Michael Niedermayer

avcodec/bfi: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f66fed6c429949fe2dc4ae34c35d2f19ac8be7e1
---

 libavcodec/bfi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/bfi.c b/libavcodec/bfi.c
index c7ac378..77bca49 100644
--- a/libavcodec/bfi.c
+++ b/libavcodec/bfi.c
@@ -171,7 +171,7 @@ static int bfi_decode_frame(AVCodecContext *avctx, void *data,
 static av_cold int bfi_decode_close(AVCodecContext *avctx)
 {
     BFIContext *bfi = avctx->priv_data;
-    av_free(bfi->dst);
+    av_freep(&bfi->dst);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list