aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ftp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-10 18:46:38 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-10 18:46:38 +0200
commit55a07cf49c00ecdf6fc43530cc5a247491936923 (patch)
tree5291a8570f29cb4f579ec0bf799998ab8ff4dc1c /libavformat/ftp.c
parentee44cb3c81a9e471935ced59bee3d5ff51a1fcbe (diff)
downloadffmpeg-55a07cf49c00ecdf6fc43530cc5a247491936923.tar.gz
avformat/ftp: Use av_freep() for dir_buffer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/ftp.c')
-rw-r--r--libavformat/ftp.c2
1 files changed, 1 insertions, 1 deletions
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;