From a0a5668dbd2e21a129cbdd20f9696a9b0d7deacc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 15 Nov 2003 10:29:43 +0000 Subject: do ares_destroy() on the ares handle when we're done in Curl_is_resolved() --- lib/hostip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hostip.c b/lib/hostip.c index 5f2a46e7a..3e5429b70 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -446,6 +446,8 @@ CURLcode Curl_is_resolved(struct connectdata *conn, *dns = NULL; if(conn->async.done) { + /* we're done, kill the ares handle */ + ares_destroy(data->state.areschannel); if(!conn->async.dns) return CURLE_COULDNT_RESOLVE_HOST; *dns = conn->async.dns; -- cgit v1.2.3