Zhu Jun fbdf26dcc6 samples/bpf: Fix a resource leak
[ Upstream commit f3ef53174b23246fe9bc2bbc2542f3a3856fa1e2 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 20:03:46 +01:00
..
2024-05-04 18:59:44 +02:00
2024-12-14 20:03:46 +01:00
2024-09-01 20:25:50 -07:00
2024-01-12 14:29:48 -08:00