[FFmpeg-cvslog] avformat/ftp: Use av_freep() for dir_buffer
Michael Niedermayer
git at videolan.org
Mon Aug 10 18:59:32 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Aug 10 18:46:38 2015 +0200| [55a07cf49c00ecdf6fc43530cc5a247491936923] | committer: Michael Niedermayer
avformat/ftp: Use av_freep() for dir_buffer
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55a07cf49c00ecdf6fc43530cc5a247491936923
---
libavformat/ftp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index 542cf6a..5d00780 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -964,7 +964,7 @@ static int ftp_read_dir(URLContext *h, AVIODirEntry **next)
static int ftp_close_dir(URLContext *h)
{
FTPContext *s = h->priv_data;
- av_free(s->dir_buffer);
+ av_freep(&s->dir_buffer);
ffurl_closep(&s->conn_control);
ffurl_closep(&s->conn_data);
return 0;
More information about the ffmpeg-cvslog
mailing list