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> |
||
---|---|---|
.. | ||
.gitignore | ||
array_map_batch_ops.c | ||
htab_map_batch_ops.c | ||
lpm_trie_map_batch_ops.c | ||
map_in_map_batch_ops.c | ||
sk_storage_map.c | ||
task_storage_map.c |