Re: [Patch net] tipc: fix a memory leak in tipc_nl_node_get_link()

2018-01-15 Thread David Miller
From: Cong Wang Date: Wed, 10 Jan 2018 12:50:25 -0800 > When tipc_node_find_by_name() fails, the nlmsg is not > freed. > > While on it, switch to a goto label to properly > free it. > > Fixes: be9c086715c ("tipc: narrow down exposure of struct tipc_node") >

Re: [Patch net] tipc: fix a memory leak in tipc_nl_node_get_link()

2018-01-11 Thread Ying Xue
On 01/11/2018 04:50 AM, Cong Wang wrote: > When tipc_node_find_by_name() fails, the nlmsg is not > freed. > > While on it, switch to a goto label to properly > free it. > > Fixes: be9c086715c ("tipc: narrow down exposure of struct tipc_node") > Reported-by: Dmitry Vyukov >

[Patch net] tipc: fix a memory leak in tipc_nl_node_get_link()

2018-01-10 Thread Cong Wang
When tipc_node_find_by_name() fails, the nlmsg is not freed. While on it, switch to a goto label to properly free it. Fixes: be9c086715c ("tipc: narrow down exposure of struct tipc_node") Reported-by: Dmitry Vyukov Cc: Jon Maloy Cc: Ying Xue