]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
*** empty log message ***
authorYang Tse <yangsita@gmail.com>
Mon, 20 Oct 2008 23:05:52 +0000 (23:05 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 20 Oct 2008 23:05:52 +0000 (23:05 +0000)
lib/hostip.c

index fe3b9320fd1bd9429fca5e0c1f02ea0c2540f23b..a97c3b28618e4331e12725269ef07d8445b31b61 100644 (file)
@@ -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;
   }