From 55a07cf49c00ecdf6fc43530cc5a247491936923 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 10 Aug 2015 18:46:38 +0200 Subject: [PATCH] avformat/ftp: Use av_freep() for dir_buffer Signed-off-by: Michael Niedermayer --- libavformat/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/ftp.c b/libavformat/ftp.c index 542cf6a862..5d007804fd 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;