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-04-24 12:28:34 -07:00
2023-06-19 16:19:11 -07:00
2023-02-23 09:37:29 -08:00
2023-06-29 10:11:10 -07:00
2023-02-23 09:37:29 -08:00
2023-04-18 16:53:52 -07:00
2023-04-25 11:05:04 -07:00
2023-03-01 09:27:00 -08:00
2023-04-11 14:10:47 -06:00