[FFmpeg-cvslog] lavf: use av_freep() in ffurl_close()

Michael Niedermayer git at videolan.org
Fri Jun 1 14:54:11 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun  1 14:40:05 2012 +0200| [f89aa6751c0b4c2ff391c34f585d9ea920858adb] | committer: Michael Niedermayer

lavf: use av_freep() in ffurl_close()

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

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

 libavformat/avio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 0e9bd2b..5a1c79e 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -329,7 +329,7 @@ int ffurl_close(URLContext *h)
     if (h->prot->priv_data_size) {
         if (h->prot->priv_data_class)
             av_opt_free(h->priv_data);
-        av_free(h->priv_data);
+        av_freep(&h->priv_data);
     }
     av_free(h);
     return ret;



More information about the ffmpeg-cvslog mailing list