summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/init/fs/misc.c1
1 files changed, 1 insertions, 0 deletions
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;