diff options
| author | Zhu Jun <[email protected]> | 2024-10-10 01:41:26 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-10-11 02:13:47 +0000 |
| commit | f3ef53174b23246fe9bc2bbc2542f3a3856fa1e2 (patch) | |
| tree | bee2c9df68dd9459c1f4081ca3d28fb0d56491dd /tools/lib/bpf/libbpf.c | |
| parent | bpf: Update bpf_override_return() comment (diff) | |
| download | kernel-f3ef53174b23246fe9bc2bbc2542f3a3856fa1e2.tar.gz kernel-f3ef53174b23246fe9bc2bbc2542f3a3856fa1e2.zip | |
samples/bpf: Fix a resource leak
The opened file should be closed in show_sockopts(), otherwise resource
leak will occur that this problem was discovered by reading code
Signed-off-by: Zhu Jun <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions
