diff options
author | Xu Kuohai <[email protected]> | 2022-10-11 08:01:05 -0400 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-10-13 10:53:22 -0700 |
commit | 6e8280b958c5d7edc514cf347a800b23b7732b2b (patch) | |
tree | dd89061a3f008f63487277a0f3ed2710b2aae3ec /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 0dc9254e03704c75f2ebc9cbef2ce4de83fba603 (diff) |
selftests/bpf: Fix memory leak caused by not destroying skeleton
Some test cases does not destroy skeleton object correctly, causing ASAN
to report memory leak warning. Fix it.
Fixes: 0ef6740e9777 ("selftests/bpf: Add tests for kptr_ref refcounting")
Fixes: 1642a3945e22 ("selftests/bpf: Add struct argument tests with fentry/fexit programs.")
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