summaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorZhu Jun <zhujun2@cmss.chinamobile.com>2024-10-09 18:41:26 -0700
committerAndrii Nakryiko <andrii@kernel.org>2024-10-10 19:13:47 -0700
commitf3ef53174b23246fe9bc2bbc2542f3a3856fa1e2 (patch)
treebee2c9df68dd9459c1f4081ca3d28fb0d56491dd /kernel/bpf/arraymap.c
parentc6ca31981b545ad3081007b6aa88b6aab1b0cece (diff)
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 <zhujun2@cmss.chinamobile.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20241010014126.2573-1-zhujun2@cmss.chinamobile.com
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions