Logo
Explore Help
Register Sign In
leandrof/linux
1
0
Fork 0
You've already forked linux
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
master
linux/tools/testing/selftests/bpf/map_tests
History
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
Powered by Gitea Version: 1.25.1 Page: 370ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API