diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-04-22 17:25:25 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-22 17:25:25 +0200 |
commit | 65c1487fc13979392e918b1a10bc567562eea844 (patch) | |
tree | e255ca16be145dd4ad7873c7a20d115e6ba529fa | |
parent | 6d0a02059664665bf48c07d51e399998b385a7b1 (diff) | |
download | curl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |