Always call endservent_r() after getservbyport_r().
authoreric <eric@openbsd.org>
Mon, 21 Dec 2020 09:40:35 +0000 (09:40 +0000)
committereric <eric@openbsd.org>
Mon, 21 Dec 2020 09:40:35 +0000 (09:40 +0000)
commitcaf7b7a2ea9bf223de3b73d4b702f2249359245f
tree2909edaca7d10fa8b9fb1b0a7a82197501ba1214
parent095a41be7685ac4694d5d157953d465e221cc60e
Always call endservent_r() after getservbyport_r().
Fix a memory leak when no entry is matched.

ok florian
lib/libc/asr/getnameinfo.c
lib/libc/asr/getnameinfo_async.c