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

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

 



Hi Lúcio,

On Wed, Jan 21, 2009 at 1:29 AM, Lucio Maciel <luciofm@xxxxxxxxx> wrote:
> 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.

Thanks!  I applied a change fairly similar to your patch for 3.18.

Cheers,

Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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