ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]>

> 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;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to