From ccb2b5d22cbecce7f8d908e97c7e178865e6034b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 11 Oct 2000 10:57:52 +0000 Subject: free the FTP struct already in the _done() function --- lib/ftp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3