aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-21 15:34:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-21 15:34:40 +0000
commit52909688cfd78915665e451dd5b1dd83864aaf5f (patch)
tree68ec92c05b372c35c8cfd099932327c50d3afc62
parentc1474b9507a68329c5d105206727bf24f1dd9335 (diff)
when using PORT, we now free the host name buffer properly
-rw-r--r--lib/ftp.c3
1 files changed, 3 insertions, 0 deletions
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);