aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sesse@google.com>2007-11-16 09:36:00 +0000
committerSteinar H. Gunderson <sesse@google.com>2007-11-16 09:36:00 +0000
commitea3fe98867a52235e71763fa91900ca6c1e6ca3b (patch)
tree2637918ddbd7b2578eb73b43389fc2e112bac245
parent4f05613fbbc6d90cfa20b0ee5e19e457b826c5c5 (diff)
Fix a double free.
-rw-r--r--ares/ares_parse_aaaa_reply.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ares/ares_parse_aaaa_reply.c b/ares/ares_parse_aaaa_reply.c
index 656ffbfb0..95e0c3053 100644
--- a/ares/ares_parse_aaaa_reply.c
+++ b/ares/ares_parse_aaaa_reply.c
@@ -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;