asyn-ares: call ares_freeaddrinfo() to clean up addrinfo results
As this leaks memory otherwise
Follow-up to ba904db070
Closes #7599
This commit is contained in:
parent
797bacf9c5
commit
378e331e92
@ -728,6 +728,7 @@ static void addrinfo_cb(void *arg, int status, int timeouts,
|
||||
if(ARES_SUCCESS == status) {
|
||||
res->temp_ai = ares2addr(result->nodes);
|
||||
res->last_status = CURL_ASYNC_SUCCESS;
|
||||
ares_freeaddrinfo(result);
|
||||
}
|
||||
res->num_pending--;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user