[FFmpeg-cvslog] avfilter/buffer: use av_freep() to avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Tue Jan 6 15:28:42 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan  6 12:53:25 2015 +0100| [da0dadbee4e9ba7f45dc668b5da1f8c2d684d2e4] | committer: Michael Niedermayer

avfilter/buffer: use av_freep() to avoid leaving stale pointers in memory

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

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

 libavfilter/buffer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c
index 0327952..43dc669 100644
--- a/libavfilter/buffer.c
+++ b/libavfilter/buffer.c
@@ -38,7 +38,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr)
 {
     if (ptr->extended_data != ptr->data)
         av_freep(&ptr->extended_data);
-    av_free(ptr->data[0]);
+    av_freep(&ptr->data[0]);
     av_free(ptr);
 }
 



More information about the ffmpeg-cvslog mailing list