mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Destroy seltd st_mtx and st_wait in seltdfini().
A correct destruction is important for WITNESS(4) and LOCK_PROFILING(9). Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> MFC after: 1 week
This commit is contained in:
parent
e8502826ce
commit
36bce27be9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326429
|
@ -1884,6 +1884,8 @@ seltdfini(struct thread *td)
|
|||
if (stp->st_free2)
|
||||
uma_zfree(selfd_zone, stp->st_free2);
|
||||
td->td_sel = NULL;
|
||||
cv_destroy(&stp->st_wait);
|
||||
mtx_destroy(&stp->st_mtx);
|
||||
free(stp, M_SELECT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue