tcb_destroy() in pager and fs0 now caters for shared structures.

This commit is contained in:
Bahadir Balban
2008-11-09 10:40:18 +02:00
parent 63fb907cd0
commit b387a0526a
2 changed files with 11 additions and 0 deletions

View File

@@ -148,6 +148,11 @@ void tcb_destroy(struct tcb *task)
{
global_remove_task(task);
if (--task->fs_data->tcb_refs == 0)
kfree(task->fs_data);
if (--task->files->tcb_refs == 0)
kfree(task->files);
kfree(task);
}