diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2023-07-05 20:15:27 +0800 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-07-26 14:31:02 -0700 |
commit | 5dd77585dd9d0e03dd1bceb95f0269a7eaf6b936 (patch) | |
tree | 3a9bcc0b5f20f20f34a56e89f66f65798fb20e7d /tools/perf/scripts/python/stackcollapse.py | |
parent | aeb660171b0663847fa04806a96302ac6112ad26 (diff) |
net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx
when mlx5_cmd_exec failed in mlx5dr_cmd_create_reformat_ctx, the memory
pointed by 'in' is not released, which will cause memory leak. Move memory
release after mlx5_cmd_exec.
Fixes: 1d9186476e12 ("net/mlx5: DR, Add direct rule command utilities")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions