diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-11 10:57:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-11 10:57:52 +0000 |
commit | ccb2b5d22cbecce7f8d908e97c7e178865e6034b (patch) | |
tree | e91bd4932dd085e70f2199665af976a0a23da579 | |
parent | 85174ed358307a611dfa796315ab3485b2a38c3d (diff) |
free the FTP struct already in the _done() function
-rw-r--r-- | lib/ftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |