summaryrefslogtreecommitdiffstats
path: root/lib/resolver.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/resolver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/resolver.c b/lib/resolver.c
index 99bf356..d8245e3 100644
--- a/lib/resolver.c
+++ b/lib/resolver.c
@@ -335,3 +335,8 @@ void resolver_init(struct event_loop *tm)
install_element(CONFIG_NODE, &debug_resolver_cmd);
install_element(ENABLE_NODE, &debug_resolver_cmd);
}
+
+void resolver_terminate(void)
+{
+ ares_destroy(state.channel);
+}