fix memory leak
This commit is contained in:
parent
0a577b9f7e
commit
884dd08641
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ static void NORETURN do_exit(int arg) {
|
||||||
|
|
||||||
//remove fildes_table
|
//remove fildes_table
|
||||||
if(!curr_task->fildes_table)
|
if(!curr_task->fildes_table)
|
||||||
kfree(curr_task->fildes_table, sizeof(fildes_t)*NR_OPEN);
|
kfree(curr_task->fildes_table, sizeof(filp_t)*NR_OPEN);
|
||||||
|
|
||||||
spinlock_unlock(&curr_task->vma_lock);
|
spinlock_unlock(&curr_task->vma_lock);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue