diff options
author | Xu Kuohai <[email protected]> | 2022-10-11 08:01:04 -0400 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-10-13 10:53:18 -0700 |
commit | 0dc9254e03704c75f2ebc9cbef2ce4de83fba603 (patch) | |
tree | 9241bdca95d8ad1589961a09e182f3e97a199567 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 93c660ca40b5d2f7c1b1626e955a8e9fa30e0749 (diff) |
libbpf: Fix memory leak in parse_usdt_arg()
In the arm64 version of parse_usdt_arg(), when sscanf returns 2, reg_name
is allocated but not freed. Fix it.
Fixes: 0f8619929c57 ("libbpf: Usdt aarch64 arg parsing support")
Signed-off-by: Xu Kuohai <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions