From 65c1487fc13979392e918b1a10bc567562eea844 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 22 Apr 2018 17:25:25 +0200 Subject: fixup ftp: unconditional ftplistparser cleanup in ftp_disconnect ... another attempt to hunt down the memory leak --- lib/ftp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ftp.c b/lib/ftp.c index a7830b9ce..0800dc6a2 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -4065,6 +4065,8 @@ static CURLcode ftp_disconnect(struct connectdata *conn, bool dead_connection) /* The FTP session may or may not have been allocated/setup at this point! */ (void)ftp_quit(conn); /* ignore errors on the QUIT */ + if(conn->data->state.wildcardmatch) + conn->data->wildcard.dtor(conn->data->wildcard.protdata); if(ftpc->entrypath) { struct Curl_easy *data = conn->data; if(data->state.most_recent_ftp_entrypath == ftpc->entrypath) { -- cgit v1.2.1