diff options
author | Hou Tao <houtao1@huawei.com> | 2022-09-21 10:00:35 +0300 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2022-09-23 02:41:27 +0300 |
commit | 103d002fb7d548fb1187e350f2b73788558128b9 (patch) | |
tree | c54832297ee526b06e635e3b6fb1345d83913689 /CREDITS | |
parent | f5eb23b91c41a7ffc7ca7fe14f3c512360f02937 (diff) | |
download | linux-103d002fb7d548fb1187e350f2b73788558128b9.tar.xz |
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>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions