diff options
author | dzwdz | 2022-07-01 20:51:28 +0200 |
---|---|---|
committer | dzwdz | 2022-07-01 20:51:28 +0200 |
commit | 3e51220ebcfbcd9ae5a63f43e4b07c85004d9cfb (patch) | |
tree | 7046322f1440eb39b4aec456475f9117f40a15a7 | |
parent | 58c44c9a8feb8c258dcd85209149c16342995ec7 (diff) |
init/fs: remember to close fs handles in fork2_n_mount
-rw-r--r-- | src/init/fs/misc.c | 1 |
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; |