getaddrinfo(3) leak in whois(1)

2018-06-18 Thread Jeremie Courreges-Anglas
Hi, 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

Re: getaddrinfo(3) leak in whois(1)

2018-06-18 Thread Todd C. Miller
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 wh