summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-22 17:25:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-22 17:25:25 +0200
commit65c1487fc13979392e918b1a10bc567562eea844 (patch)
treee255ca16be145dd4ad7873c7a20d115e6ba529fa
parent6d0a02059664665bf48c07d51e399998b385a7b1 (diff)
downloadcurl-bagder/ftplistparser-memory-leak.tar.gz
fixup ftp: unconditional ftplistparser cleanup in ftp_disconnectbagder/ftplistparser-memory-leak
... another attempt to hunt down the memory leak
-rw-r--r--lib/ftp.c2
1 files changed, 2 insertions, 0 deletions
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) {