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 Passed - Unit
No Test Coverage - Build Status
Buildable 4146 Build 4189: arc lint + arc unit