From: Daniel Stenberg Date: Sat, 15 Nov 2003 10:29:43 +0000 (+0000) Subject: do ares_destroy() on the ares handle when we're done in Curl_is_resolved() X-Git-Tag: curl-7_11_0~237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0a5668dbd2e21a129cbdd20f9696a9b0d7deacc;p=thirdparty%2Fcurl.git do ares_destroy() on the ares handle when we're done in Curl_is_resolved() --- diff --git a/lib/hostip.c b/lib/hostip.c index 5f2a46e7a0..3e5429b702 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;