projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1474b9
)
when using PORT, we now free the host name buffer properly
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 21 Nov 2000 15:34:40 +0000
(15:34 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 21 Nov 2000 15:34:40 +0000
(15:34 +0000)
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index 8b4c205fd754ba33cde9b1daaa1edf5f92b4d888..13262970cd45a4522633e06dacca375a7587b89c 100644
(file)
--- 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);