aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-18 19:29:31 +0000
committerDoug Ledford <[email protected]>2019-08-20 17:44:45 +0000
commitb08afa064c320e5d85cdc27228426b696c4c8dae (patch)
tree5f41c4ddaa140550337a2a66cdd4efb0fa2d1bfa /tools/perf/scripts/python/net_dropmonitor.py
parentIB/mlx4: Fix memory leaks (diff)
downloadkernel-b08afa064c320e5d85cdc27228426b696c4c8dae.tar.gz
kernel-b08afa064c320e5d85cdc27228426b696c4c8dae.zip
infiniband: hfi1: fix a memory leak bug
In fault_opcodes_read(), 'data' is not deallocated if debugfs_file_get() fails, leading to a memory leak. To fix this bug, introduce the 'free_data' label to free 'data' before returning the error. Signed-off-by: Wenwen Wang <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Acked-by: Dennis Dalessandro <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions