aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-10-11 10:57:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-10-11 10:57:52 +0000
commitccb2b5d22cbecce7f8d908e97c7e178865e6034b (patch)
treee91bd4932dd085e70f2199665af976a0a23da579
parent85174ed358307a611dfa796315ab3485b2a38c3d (diff)
free the FTP struct already in the _done() function
-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;
}