1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin/whois
jca d874525269 Plug getaddrinfo(3) memory leak
choose_server() calls getaddrinfo(3) but never frees the result.
Minimal fix that relies on getaddrinfo(3) only updating the "res"
pointer if the call was successful.

While here, call freeaddrinfo(3) earlier in whois(), less code and less
overall memory used since whois() can recurse.

ok millert@ tb@ benno@
2018-06-19 11:28:11 +00:00
..
Makefile
whois.1 spell out RIPE without errant acute accents; ok millert@ 2016-02-20 20:52:50 +00:00
whois.c Plug getaddrinfo(3) memory leak 2018-06-19 11:28:11 +00:00