diff options
| author | Zhu Jun <zhujun2@cmss.chinamobile.com> | 2024-10-09 18:41:26 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-14 20:03:46 +0100 |
| commit | fbdf26dcc6d697b9fd44668d415b8c01771c7fd5 (patch) | |
| tree | 885ce62990f924bb7faf6e6bf840087819151252 /usr | |
| parent | 8945c33b0500a4543fd13d980c6f5c5fd56e5fc5 (diff) | |
| download | linux-fbdf26dcc6d697b9fd44668d415b8c01771c7fd5.tar.gz linux-fbdf26dcc6d697b9fd44668d415b8c01771c7fd5.tar.bz2 linux-fbdf26dcc6d697b9fd44668d415b8c01771c7fd5.zip | |
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>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions
