Hi,

>>>>> On Sat, 13 Mar 2010 20:25:29 +0800
>>>>> Earl Lapus <earl.la...@gmail.com> said:

earl> I was browsing through the ping6 code and I noticed that one
earl> particular call to getaddrinfo() didn't have a freeaddrinfo() pair.
earl> All calls to getaddrinfo() should have an equivalent freeaddrinfo(), 
right?

Yup, it should be good practice.  But, this is rather intentional.
The `hostname' variable points to res->ai_canonname, and is used
later.  This is why the `res' variable is declared globally.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
u...@mahoroba.org  u...@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to