summaryrefslogtreecommitdiffstats
path: root/ares_destroy.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-02-01 21:23:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2010-02-01 21:23:59 +0100
commit24d5a984ddac3762093b08f0fa186973301ab0c9 (patch)
treea3c7bf0cfb031a8fa837be064d0c7011488d19d1 /ares_destroy.c
parent1e177e09238804a516cd8b92e8dc097d98983433 (diff)
downloadc-ares-foo.tar.gz
c-ares-foo.tar.xz
c-ares-foo.zip
Improved IPv6 patchfoo
Diffstat (limited to 'ares_destroy.c')
-rw-r--r--ares_destroy.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/ares_destroy.c b/ares_destroy.c
index 0044a71..4040971 100644
--- a/ares_destroy.c
+++ b/ares_destroy.c
@@ -67,15 +67,7 @@ void ares_destroy(ares_channel channel)
}
#endif
- if (channel->servers) {
- for (i = 0; i < channel->nservers; i++)
- {
- struct server_state *server = &channel->servers[i];
- ares__close_sockets(channel, server);
- assert(ares__is_list_empty(&(server->queries_to_server)));
- }
- free(channel->servers);
- }
+ ares__free_servers(channel);
if (channel->domains) {
for (i = 0; i < channel->ndomains; i++)