From e43c5bdc6b47e8dd5e2ddcd6cf57fec79388523a Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 13 Jan 2013 16:53:13 -0800 Subject: Rewrite the exchange allocator to work without an active scheduler. #4457 --- src/rt/rust_task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index a9246963ca4..e51af464e48 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -181,7 +181,7 @@ void task_start_wrapper(spawn_args *a) // free the environment (which should be a unique closure). const type_desc *td = env->td; td->drop_glue(NULL, NULL, NULL, box_body(env)); - upcall_exchange_free(env); + task->kernel->region()->free(env); } // The cleanup work needs lots of stack -- cgit 1.4.1-3-g733a5