]> granicus.if.org Git - curl/commitdiff
Fix a double free.
authorSteinar H. Gunderson <sesse@google.com>
Fri, 16 Nov 2007 09:36:00 +0000 (09:36 +0000)
committerSteinar H. Gunderson <sesse@google.com>
Fri, 16 Nov 2007 09:36:00 +0000 (09:36 +0000)
ares/ares_parse_aaaa_reply.c

index 656ffbfb01bac345dc0bc7f70cfb9c1714f83069..95e0c3053ae017ff9168335c1ff99115d4e44606 100644 (file)
@@ -236,9 +236,6 @@ int ares_parse_aaaa_reply(const unsigned char *abuf, int alen,
         free(aliases[i]);
       free(aliases);
     }
-  for (i = 0; i < naliases; i++)
-    free(aliases[i]);
-  free(aliases);
   free(addrs);
   free(hostname);
   return status;