summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2018-06-19 11:28:12 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2018-06-19 11:28:12 +0000
commit9461db4e963d9472a1c6997b4322f2420e8ec301 (patch)
tree7634295568efd5e60994b01044bf0448cce305ac /usr.bin/sndiod
parent57436230755cc8f123e77d7f7ac1a438cba5e871 (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