commit | ccb2b5d22cbecce7f8d908e97c7e178865e6034b | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Wed Oct 11 10:57:52 2000 +0000 |
committer | Daniel Stenberg <daniel@haxx.se> | Wed Oct 11 10:57:52 2000 +0000 |
tree | e91bd4932dd085e70f2199665af976a0a23da579 | |
parent | 85174ed358307a611dfa796315ab3485b2a38c3d [diff] |
free the FTP struct already in the _done() function
diff --git a/lib/ftp.c b/lib/ftp.c index 920185e..ea984a6 100644 --- a/lib/ftp.c +++ b/lib/ftp.c
@@ -588,7 +588,8 @@ 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; }