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

This commit is contained in:
Daniel Stenberg 2003-11-15 10:29:43 +00:00
parent bfc7d6c11b
commit a0a5668dbd
1 changed files with 2 additions and 0 deletions

View 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;