summaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-20 23:05:52 +0000
committerYang Tse <yangsita@gmail.com>2008-10-20 23:05:52 +0000
commit6983ba3225305da0fa3b38691b34799ff3f68837 (patch)
tree6f4f7d1607ae548951d7da3951d2bef654b95b62 /lib/hostip.c
parent77e028d620b0e129a819ac88523ae71de66aa98e (diff)
downloadcurl-6983ba3225305da0fa3b38691b34799ff3f68837.tar.gz
*** empty log message ***
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index fe3b9320f..a97c3b286 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -694,8 +694,6 @@ static void freednsentry(void *freethis)
struct Curl_dns_entry *p = (struct Curl_dns_entry *) freethis;
Curl_freeaddrinfo(p->addr);
-
- memset(p, 0, sizeof(struct Curl_dns_entry));
free(p);
}
@@ -746,7 +744,6 @@ void Curl_freeaddrinfo(Curl_addrinfo *ai)
free(ai->ai_addr);
if(ai->ai_canonname)
free(ai->ai_canonname);
- memset(ai, 0, sizeof(Curl_addrinfo));
free(ai);
ai = next;
}