mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Free MAC label on a POSIX semaphore when the semaphore is freed.
MFC after: 3 days Submitted by: jhb
This commit is contained in:
parent
5965c4b71c
commit
57d7e86b65
1 changed files with 3 additions and 0 deletions
|
|
@ -442,6 +442,9 @@ static void
|
|||
sem_free(struct ksem *ks)
|
||||
{
|
||||
|
||||
#ifdef MAC
|
||||
mac_posixsem_destroy(ks);
|
||||
#endif
|
||||
nsems--;
|
||||
if (ks->ks_onlist)
|
||||
LIST_REMOVE(ks, ks_entry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue