Commit f161a6b1 authored by zhujun2's avatar zhujun2 Committed by Greg Kroah-Hartman
Browse files

selftests/efivarfs: create-read: fix a resource leak



[ Upstream commit 3f6f8a8c ]

The opened file should be closed in main(), otherwise resource
leak will occur that this problem was discovered by code reading

Signed-off-by: default avatarzhujun2 <zhujun2@cmss.chinamobile.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f475d550
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment