Skip to content
Snippets Groups Projects
Commit 52909688 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent c1474b95
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment