free the FTP struct already in the _done() function

This commit is contained in:
Daniel Stenberg 2000-10-11 10:57:52 +00:00
parent 85174ed358
commit ccb2b5d22c
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}