when using PORT, we now free the host name buffer properly

This commit is contained in:
Daniel Stenberg 2000-11-21 15:34:40 +00:00
parent c1474b9507
commit 52909688cf
1 changed files with 3 additions and 0 deletions

View File

@ -774,6 +774,9 @@ CURLcode _ftp(struct connectdata *conn)
free(hostdataptr);
return CURLE_FTP_PORT_FAILED;
}
if(hostdataptr)
/* free the memory used for name lookup */
free(hostdataptr);
}
else {
failf(data, "could't find my own IP address (%s)", myhost);