Properly ref counting to fix valgrind issues on linux.

This commit is contained in:
Eric Holk
2011-08-13 18:15:56 -07:00
parent aa0a51a7f5
commit d63f8340a5
7 changed files with 44 additions and 15 deletions

View File

@@ -160,6 +160,7 @@ rust_kernel::get_task_by_id(rust_task_id id) {
rust_task *task = NULL;
// get leaves task unchanged if not found.
task_table.get(id, &task);
if(task) task->ref();
return task;
}