aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 920185e7e..ea984a6c7 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -588,7 +588,8 @@ CURLcode ftp_done(struct connectdata *conn)
if(ftp->dir)
free(ftp->dir);
- /* TBD: the ftp struct is still allocated here */
+ free(ftp);
+ data->proto.ftp=NULL; /* it is gone */
return CURLE_OK;
}