mirror of
https://github.com/curl/curl.git
synced 2026-07-26 08:57:16 +03:00
when using PORT, we now free the host name buffer properly
This commit is contained in:
parent
c1474b9507
commit
52909688cf
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue