Hi, there is a memory leak in the sample usage code in the getifaddrs (3) man page. The code doesnt save the head pointer of the list, an then passes a NULL pointer to the freeifaddrs(3) leaving all the memory unfreed. Lúcio Maciel luciofm@xxxxxxxxx
Attachment:
getifaddrs.diff
Description: Binary data