aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-11-15 10:29:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-11-15 10:29:43 +0000
commita0a5668dbd2e21a129cbdd20f9696a9b0d7deacc (patch)
treee5bfedd7c60a1200ddb2c5042ca0ee2d5251775b /lib/hostip.c
parentbfc7d6c11b738d5dc6e1deec87a2ac6d559fb14f (diff)
do ares_destroy() on the ares handle when we're done in Curl_is_resolved()
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c2
1 files changed, 2 insertions, 0 deletions
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;