From d63f8340a5e947cdf6b3ad34d3683f2ae9e5cf84 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Sat, 13 Aug 2011 18:15:56 -0700 Subject: Properly ref counting to fix valgrind issues on linux. --- src/rt/rust.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rt/rust.cpp') 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; -- cgit 1.4.1-3-g733a5