diff options
author | Zhang Changzhong <[email protected]> | 2022-12-12 15:11:26 -0800 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2023-02-06 15:13:02 -0800 |
commit | 4a606ce68426c88ff2563382b33cc34f3485fe57 (patch) | |
tree | b8fb9d0f3af5a301cb9897fc7f9e6ebe00559e44 /tools/perf/scripts/python/libxed.py | |
parent | 3f4870df1b15d62665cb86ca116c8c9cf0e830b0 (diff) |
ice: switch: fix potential memleak in ice_add_adv_recipe()
When ice_add_special_words() fails, the 'rm' is not released, which will
lead to a memory leak. Fix this up by going to 'err_unroll' label.
Compile tested only.
Fixes: 8b032a55c1bd ("ice: low level support for tunnels")
Signed-off-by: Zhang Changzhong <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions