Name:
Anonymous
2012-01-05 11:24
Does it leak memory or not?
Name:
Anonymous
2012-01-05 14:43
>>1
http://pubs.opengroup.org/onlinepubs/9699919799/functions/inet_addr.html
The return value of inet_ntoa() may point to static data that may be overwritten by subsequent calls to inet_ntoa().
So it depends on whether the function uses static data or allocates memory each time.