[FFmpeg-cvslog] fifo: use av_freep()

Michael Niedermayer git at videolan.org
Tue May 10 00:44:19 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May  9 21:23:45 2011 +0200| [173544077316c448cefc79c7e595021b41249a1a] | committer: Michael Niedermayer

fifo: use av_freep()

With this change libavutil uses av_freep() everywhere where it makes sense.
Remaining av_free() use in it has the used pointer become inaccessible quickly
soo zeroing makes no sense.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavutil/fifo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index cfb716e..d101989 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -38,7 +38,7 @@ AVFifoBuffer *av_fifo_alloc(unsigned int size)
 void av_fifo_free(AVFifoBuffer *f)
 {
     if(f){
-        av_free(f->buffer);
+        av_freep(&f->buffer);
         av_free(f);
     }
 }



More information about the ffmpeg-cvslog mailing list