diff options
author | Cong Wang <[email protected]> | 2018-01-10 12:50:25 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-01-15 13:45:50 -0500 |
commit | 59b36613e85fb16ebf9feaf914570879cd5c2a21 (patch) | |
tree | 9219f64c5110f0f7b4865420b154e649cca774e5 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 749439bfac6e1a2932c582e2699f91d329658196 (diff) |
tipc: fix a memory leak in tipc_nl_node_get_link()
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 <[email protected]>
Cc: Jon Maloy <[email protected]>
Cc: Ying Xue <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: Ying Xue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions