From: Daniel Stenberg Date: Tue, 21 Nov 2000 15:34:40 +0000 (+0000) Subject: when using PORT, we now free the host name buffer properly X-Git-Tag: curl-7_5~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52909688cfd78915665e451dd5b1dd83864aaf5f;p=curl when using PORT, we now free the host name buffer properly --- diff --git a/lib/ftp.c b/lib/ftp.c index 8b4c205fd..13262970c 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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);