diff options
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index a94eb6c1a24..cc2f86da4b2 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -108,6 +108,8 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { } root_task->start(main_fn, (uintptr_t)args->args); + root_task->deref(); + root_task = NULL; int ret = kernel->start_task_threads(); delete args; |
