From: Daniel Stenberg Date: Wed, 11 Oct 2000 10:57:52 +0000 (+0000) Subject: free the FTP struct already in the _done() function X-Git-Tag: curl-7_4_1~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccb2b5d22cbecce7f8d908e97c7e178865e6034b;p=thirdparty%2Fcurl.git free the FTP struct already in the _done() function --- diff --git a/lib/ftp.c b/lib/ftp.c index 920185e7e7..ea984a6c75 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; }