aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorAndrii Staikov <[email protected]>2023-09-08 14:42:01 +0200
committerTony Nguyen <[email protected]>2023-09-11 08:53:08 -0700
commit5ca636d927a106780451d957734f02589b972e2b (patch)
treed86f1dbb98e40b9503ef32dadf022b5c72b815ef /tools/perf/scripts/python/stat-cpi.py
parent5a124b1fd3e6cb15a943f0cdfe96aa8f6d3d2f39 (diff)
i40e: fix potential memory leaks in i40e_remove()
Instead of freeing memory of a single VSI, make sure the memory for all VSIs is cleared before releasing VSIs. Add releasing of their resources in a loop with the iteration number equal to the number of allocated VSIs. Fixes: 41c445ff0f48 ("i40e: main driver core") Signed-off-by: Andrii Staikov <[email protected]> Signed-off-by: Aleksandr Loktionov <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions