fix memory leak

This commit is contained in:
Marian Ohligs 2012-05-22 13:24:00 +02:00
parent 0a577b9f7e
commit 884dd08641

View file

@ -194,7 +194,7 @@ static void NORETURN do_exit(int arg) {
//remove 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);