summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-11-07 21:54:50 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2012-11-07 21:54:50 (GMT)
commit1e4f2d28fcc5594d0c3d67a35b2c27291892c67c (patch)
tree6ed41c6fae86f9c91fc6bd985dff331750739366
parent50f25d8a4b2d16f4c5e0ef620238688b7a315c7a (diff)
downloadc-ares-1e4f2d28fcc5594d0c3d67a35b2c27291892c67c.zip
c-ares-1e4f2d28fcc5594d0c3d67a35b2c27291892c67c.tar.gz
c-ares-1e4f2d28fcc5594d0c3d67a35b2c27291892c67c.tar.bz2
Revert "ares_parse_aaaa_reply: fix memory leak"
This reverts commit 50f25d8a4b2d16f4c5e0ef620238688b7a315c7a.
-rw-r--r--ares_parse_aaaa_reply.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ares_parse_aaaa_reply.c b/ares_parse_aaaa_reply.c
index c5c1ebf..b11df52 100644
--- a/ares_parse_aaaa_reply.c
+++ b/ares_parse_aaaa_reply.c
@@ -242,7 +242,6 @@ int ares_parse_aaaa_reply(const unsigned char *abuf, int alen,
hostent->h_addr_list[i] = (char *) &addrs[i];
hostent->h_addr_list[naddrs] = NULL;
*host = hostent;
- free(addrs); /* since it isn't used anymore! */
return ARES_SUCCESS;
}
free(hostent);