Commit 55a07cf4 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/ftp: Use av_freep() for dir_buffer

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ee44cb3c
...@@ -964,7 +964,7 @@ static int ftp_read_dir(URLContext *h, AVIODirEntry **next) ...@@ -964,7 +964,7 @@ static int ftp_read_dir(URLContext *h, AVIODirEntry **next)
static int ftp_close_dir(URLContext *h) static int ftp_close_dir(URLContext *h)
{ {
FTPContext *s = h->priv_data; FTPContext *s = h->priv_data;
av_free(s->dir_buffer); av_freep(&s->dir_buffer);
ffurl_closep(&s->conn_control); ffurl_closep(&s->conn_control);
ffurl_closep(&s->conn_data); ffurl_closep(&s->conn_data);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment