]> granicus.if.org Git - curl/commitdiff
do ares_destroy() on the ares handle when we're done in Curl_is_resolved()
authorDaniel Stenberg <daniel@haxx.se>
Sat, 15 Nov 2003 10:29:43 +0000 (10:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 15 Nov 2003 10:29:43 +0000 (10:29 +0000)
lib/hostip.c

index 5f2a46e7a00cae6742f95a709bc5c47d7c16b65e..3e5429b702085ebe496f334779cbbb0bd3a19175 100644 (file)
@@ -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;