diff options
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 2 |
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; |