On Mon, 18 Jun 2018 20:14:37 +0200, Jeremie Courreges-Anglas wrote:

> here are two tweaks for whois.c:
> - in whois() call freeaddrinfo(3) asap, there is no reason to keep the
>   results around for longer than necessary.  whois() is recursive so
>   this should reduce the amount of memory used when following redirects.
> - choose_server() doesn't attempt to free the getaddrinfo(3) results,
>   I think the least intrusive way is to rely on the fact that
>   getaddrinfo(3) only updates the "res" pointer on a successful call.
>   Tested with ./obj/whois nic.africa

Makes sense.  OK millert@

 - todd

Reply via email to