diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 15:34:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 15:34:40 +0000 |
commit | 52909688cfd78915665e451dd5b1dd83864aaf5f (patch) | |
tree | 68ec92c05b372c35c8cfd099932327c50d3afc62 | |
parent | c1474b9507a68329c5d105206727bf24f1dd9335 (diff) |
when using PORT, we now free the host name buffer properly
-rw-r--r-- | lib/ftp.c | 3 |
1 files changed, 3 insertions, 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); |