summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2026-01-20 13:46:40 +0000
committerJakub Kicinski <kuba@kernel.org>2026-01-22 20:30:58 -0800
commit108948f723b13874b7ebf6b3f1cc598a7de38622 (patch)
tree9849fc6994e92aa7cfaf8e6b86c4dd15c34d7de3 /tools/perf/scripts/python
parent0a80e38d0fe1fe7b59c1e93ad908c4148a15926a (diff)
net/mlx5: Fix memory leak in esw_acl_ingress_lgcy_setup()
In esw_acl_ingress_lgcy_setup(), if esw_acl_table_create() fails, the function returns directly without releasing the previously created counter, leading to a memory leak. Fix this by jumping to the out label instead of returning directly, which aligns with the error handling logic of other paths in this function. Compile tested only. Issue found using a prototype static analysis tool and code review. Fixes: 07bab9502641 ("net/mlx5: E-Switch, Refactor eswitch ingress acl codes") Signed-off-by: Zilin Guan <zilin@seu.edu.cn> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260120134640.2717808-1-zilin@seu.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions