1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

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);