From 3e51220ebcfbcd9ae5a63f43e4b07c85004d9cfb Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 1 Jul 2022 20:51:28 +0200 Subject: init/fs: remember to close fs handles in fork2_n_mount --- src/init/fs/misc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/init/fs') diff --git a/src/init/fs/misc.c b/src/init/fs/misc.c index 914cfb2..257ed32 100644 --- a/src/init/fs/misc.c +++ b/src/init/fs/misc.c @@ -9,6 +9,7 @@ bool fork2_n_mount(const char *path) { handle_t h; if (_syscall_fork(FORK_NEWFS, &h) > 0) { /* parent */ _syscall_mount(h, path, strlen(path)); + _syscall_close(h); return true; } return false; -- cgit v1.2.3