Ding Xiang 2a20154951
selftests/landlock: Fix a resource leak
The opened file should be closed before return, otherwise resource leak
will occur.

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20230830101148.3738-1-dingxiang@cmss.chinamobile.com
Fixes: 3de64b656b3c ("selftests/landlock: Add supports_filesystem() helper")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2023-08-30 18:53:08 +02:00
..
2023-08-09 21:06:14 -07:00
2023-04-25 13:00:41 -07:00
2023-06-30 14:50:00 -07:00
2023-04-27 17:41:23 -07:00
2023-04-18 14:22:12 -07:00