From 52909688cfd78915665e451dd5b1dd83864aaf5f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 21 Nov 2000 15:34:40 +0000 Subject: when using PORT, we now free the host name buffer properly --- lib/ftp.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3