summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2018-06-19 11:28:11 +0000
committerjca <jca@openbsd.org>2018-06-19 11:28:11 +0000
commitd87452526914ca75945d461881c729bcd482a3f3 (patch)
tree5fe56f1c80f1b67f11bd59f4ab92177f512c138f /lib
parentSend the calling thread id, effective uid and gid, and umask to the (diff)
downloadwireguard-openbsd-d87452526914ca75945d461881c729bcd482a3f3.tar.xz
wireguard-openbsd-d87452526914ca75945d461881c729bcd482a3f3.zip
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 'lib')
0 files changed, 0 insertions, 0 deletions