Commit a0a5668d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

do ares_destroy() on the ares handle when we're done in Curl_is_resolved()

parent bfc7d6c1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;