Re: [PATCH net] ipv4: fix memory leaks in ip_cmsg_send() callers

2016-02-15 Thread Cong Wang
On Thu, Feb 4, 2016 at 6:23 AM, Eric Dumazet wrote: > From: Eric Dumazet > > Dmitry reported memory leaks of IP options allocated in > ip_cmsg_send() when/if this function returns an error. > > Callers are responsible for the freeing. Right, because there is a loop in ip_cmsg_send(), so the call

Re: [PATCH net] ipv4: fix memory leaks in ip_cmsg_send() callers

2016-02-13 Thread David Miller
From: Eric Dumazet Date: Thu, 04 Feb 2016 06:23:28 -0800 > From: Eric Dumazet > > Dmitry reported memory leaks of IP options allocated in > ip_cmsg_send() when/if this function returns an error. > > Callers are responsible for the freeing. > > Many thanks to Dmitry for the report and diagnost

[PATCH net] ipv4: fix memory leaks in ip_cmsg_send() callers

2016-02-04 Thread Eric Dumazet
From: Eric Dumazet Dmitry reported memory leaks of IP options allocated in ip_cmsg_send() when/if this function returns an error. Callers are responsible for the freeing. Many thanks to Dmitry for the report and diagnostic. Reported-by: Dmitry Vyukov Signed-off-by: Eric Dumazet --- net/ipv4