aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/c-ares/ares_destroy.c
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.ru>2022-02-10 16:45:53 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:53 +0300
commit7353a3fdea9c67c256980c00a2b3b67f09b23a27 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/libs/c-ares/ares_destroy.c
parent2015790ac9fcc04caab83fccc23ab2460310a797 (diff)
downloadydb-7353a3fdea9c67c256980c00a2b3b67f09b23a27.tar.gz
Restoring authorship annotation for <snermolaev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/c-ares/ares_destroy.c')
-rw-r--r--contrib/libs/c-ares/ares_destroy.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/libs/c-ares/ares_destroy.c b/contrib/libs/c-ares/ares_destroy.c
index 447abd51ac..fed2009ab3 100644
--- a/contrib/libs/c-ares/ares_destroy.c
+++ b/contrib/libs/c-ares/ares_destroy.c
@@ -27,15 +27,15 @@ void ares_destroy_options(struct ares_options *options)
int i;
if(options->servers)
- ares_free(options->servers);
+ ares_free(options->servers);
for (i = 0; i < options->ndomains; i++)
- ares_free(options->domains[i]);
+ ares_free(options->domains[i]);
if(options->domains)
- ares_free(options->domains);
+ ares_free(options->domains);
if(options->sortlist)
- ares_free(options->sortlist);
+ ares_free(options->sortlist);
if(options->lookups)
- ares_free(options->lookups);
+ ares_free(options->lookups);
if(options->resolvconf_path)
ares_free(options->resolvconf_path);
}
@@ -77,20 +77,20 @@ void ares_destroy(ares_channel channel)
if (channel->domains) {
for (i = 0; i < channel->ndomains; i++)
- ares_free(channel->domains[i]);
- ares_free(channel->domains);
+ ares_free(channel->domains[i]);
+ ares_free(channel->domains);
}
if(channel->sortlist)
- ares_free(channel->sortlist);
+ ares_free(channel->sortlist);
if (channel->lookups)
- ares_free(channel->lookups);
+ ares_free(channel->lookups);
if (channel->resolvconf_path)
ares_free(channel->resolvconf_path);
- ares_free(channel);
+ ares_free(channel);
}
void ares__destroy_servers_state(ares_channel channel)
@@ -106,7 +106,7 @@ void ares__destroy_servers_state(ares_channel channel)
ares__close_sockets(channel, server);
assert(ares__is_list_empty(&server->queries_to_server));
}
- ares_free(channel->servers);
+ ares_free(channel->servers);
channel->servers = NULL;
}
channel->nservers = -1;