summaryrefslogtreecommitdiff
path: root/deps/cares/src/ares_destroy.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2018-10-24 16:49:04 +0200
committerAnna Henningsen <anna@addaleax.net>2018-11-06 11:29:22 +0000
commit3a25b174aa5451311002247c31a7aa9a461b63b6 (patch)
tree4c53395c19c6cfc8202854c8e19b12be0633cfe8 /deps/cares/src/ares_destroy.c
parent50f951c90f7a68bc4285a1cfb8e0180c9a336060 (diff)
downloadandroid-node-v8-3a25b174aa5451311002247c31a7aa9a461b63b6.tar.gz
android-node-v8-3a25b174aa5451311002247c31a7aa9a461b63b6.tar.bz2
android-node-v8-3a25b174aa5451311002247c31a7aa9a461b63b6.zip
deps: upgrade to c-ares v1.15.0
Our out-of-tree patch from 2b6bb9f588 ("deps: c-ares float, win ipv6 bad fec0 prefix") should no longer be necessary, c-ares now blacklists such addresses itself. PR-URL: https://github.com/nodejs/node/pull/23854 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/cares/src/ares_destroy.c')
-rw-r--r--deps/cares/src/ares_destroy.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/cares/src/ares_destroy.c b/deps/cares/src/ares_destroy.c
index 8aa42236ae..fed2009ab3 100644
--- a/deps/cares/src/ares_destroy.c
+++ b/deps/cares/src/ares_destroy.c
@@ -36,6 +36,8 @@ void ares_destroy_options(struct ares_options *options)
ares_free(options->sortlist);
if(options->lookups)
ares_free(options->lookups);
+ if(options->resolvconf_path)
+ ares_free(options->resolvconf_path);
}
void ares_destroy(ares_channel channel)
@@ -44,7 +46,7 @@ void ares_destroy(ares_channel channel)
struct query *query;
struct list_node* list_head;
struct list_node* list_node;
-
+
if (!channel)
return;
@@ -85,6 +87,9 @@ void ares_destroy(ares_channel channel)
if (channel->lookups)
ares_free(channel->lookups);
+ if (channel->resolvconf_path)
+ ares_free(channel->resolvconf_path);
+
ares_free(channel);
}