[patch] getifaddrs.3: fix a memory leak in sample code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux