do_fork(): fix tids memory leak; additional sanity checks
This commit is contained in:
@@ -1937,6 +1937,8 @@ unsigned long do_fork(int clone_flags, unsigned long newsp,
|
||||
newproc->tids[i].thread = NULL;
|
||||
++newproc->nr_tids;
|
||||
}
|
||||
|
||||
kfree(tids);
|
||||
}
|
||||
|
||||
/* Find an unused TID */
|
||||
|
||||
Reference in New Issue
Block a user