mirror of
https://github.com/curl/curl.git
synced 2026-05-18 11:46:20 +03:00
free the FTP struct already in the _done() function
This commit is contained in:
parent
85174ed358
commit
ccb2b5d22c
1 changed files with 2 additions and 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue