diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2018-06-19 11:28:12 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2018-06-19 11:28:12 +0000 |
commit | 9461db4e963d9472a1c6997b4322f2420e8ec301 (patch) | |
tree | 7634295568efd5e60994b01044bf0448cce305ac /usr.bin/sndiod | |
parent | 57436230755cc8f123e77d7f7ac1a438cba5e871 (diff) |
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@
Diffstat (limited to 'usr.bin/sndiod')
0 files changed, 0 insertions, 0 deletions