aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-14 01:38:39 -0500
committerDavid S. Miller <[email protected]>2019-08-15 12:44:58 -0700
commit20fb7c7a39b5c719e2e619673b5f5729ee7d2306 (patch)
tree4756b319838f0ffac3ffae2f50b39544f42a60fb /tools/perf/util/c++/clang-test.cpp
parentd85f01775850a35eae47a0090839baf510c1ef12 (diff)
net: myri10ge: fix memory leaks
In myri10ge_probe(), myri10ge_alloc_slices() is invoked to allocate slices related structures. Later on, myri10ge_request_irq() is used to get an irq. However, if this process fails, the allocated slices related structures are not deallocated, leading to memory leaks. To fix this issue, revise the target label of the goto statement to 'abort_with_slices'. Signed-off-by: Wenwen Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions