1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avformat/ftp: Use av_freep() for dir_buffer

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-08-10 18:46:38 +02:00
parent ee44cb3c81
commit 55a07cf49c

View File

@ -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;