linux/tools/testing/selftests/bpf/map_tests
Hou Tao 103d002fb7 selftests/bpf: Free the allocated resources after test case succeeds
Free the created fd or allocated bpf_object after test case succeeds,
else there will be resource leaks.

Spotted by using address sanitizer and checking the content of
/proc/$pid/fd directory.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20220921070035.2016413-3-houtao@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
2022-09-22 16:41:27 -07:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
array_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
htab_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
lpm_trie_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
map_in_map_batch_ops.c selftests/bpf: Handle batch operations for map-in-map bpf-maps 2022-05-10 10:34:57 -07:00
sk_storage_map.c selftests/bpf: Replace all uses of bpf_load_btf() with bpf_btf_load() 2021-12-10 15:29:18 -08:00
task_storage_map.c selftests/bpf: Destroy the skeleton when CONFIG_PREEMPT is off 2022-09-22 16:41:27 -07:00