[FFmpeg-cvslog] cache: use av_freep instead of av_free in cache_open

Jean First git at videolan.org
Sat Dec 31 02:28:43 CET 2011


ffmpeg | branch: master | Jean First <jeanfirst at gmail.com> | Fri Dec 30 21:08:01 2011 +0100| [576ada791a5085b7427c9062ba4f65e811914bd0] | committer: Michael Niedermayer

cache: use av_freep instead of av_free in cache_open

Signed-off-by: Jean First <jeanfirst at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/cache.c b/libavformat/cache.c
index e098a31..3e60aea 100644
--- a/libavformat/cache.c
+++ b/libavformat/cache.c
@@ -63,7 +63,7 @@ static int cache_open(URLContext *h, const char *arg, int flags)
     }
 
     unlink(buffername);
-    av_free(buffername);
+    av_freep(&buffername);
 
     return ffurl_open(&c->inner, arg, flags, &h->interrupt_callback, NULL);
 }



More information about the ffmpeg-cvslog mailing list