diff options
-rw-r--r-- | lib/asyn-ares.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 1d88b5cb1..b3c7c521a 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -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--; } |