If the ai->ai_addrlen <= minsiz test fails, then
freeaddrinfo() does not get called to free the memory
just allocated by getaddrinfo(). Fix by moving
ai->ai_addrlen <= minsiz to a separate if block
so that freeaddrinfo() will be called whenever
getaddrinfo() succeeds.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable