aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-01-22 10:31:19 +0000
committerDavid S. Miller <[email protected]>2018-01-22 09:27:10 -0500
commitb75703de16301b80f1eedecafdf37bb02c9e155f (patch)
tree834fb1ed28387d7ebb81c5f9a6a8653a6ee7f72e /tools/perf/scripts/python
parent2ae50dea1d5566ea054d96e413a86017066d3528 (diff)
devlink: fix memory leak on 'resource'
Currently, if the call to devlink_resource_find returns null then the error exit path does not free the devlink_resource 'resource' and a memory leak occurs. Fix this by kfree'ing resource on the error exit path. Detected by CoverityScan, CID#1464184 ("Resource leak") Fixes: d9f9b9a4d05f ("devlink: Add support for resource abstraction") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions