Free MAC label on a POSIX semaphore when the semaphore is freed.

MFC after:	3 days
Submitted by:	jhb
This commit is contained in:
Robert Watson 2008-01-07 22:03:19 +00:00
parent 5965c4b71c
commit 57d7e86b65

View file

@ -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);