Fix a MAC label leak for POSIX semaphores, in which per-policy labels

would be properly disposed of, but the global label structure for the
semaphore wouldn't be freed.

MFC after:	3 days
Reported by:	tanyong <tanyong at ercist dot iscas dot ac dot cn>,
		zhouzhouyi
This commit is contained in:
Robert Watson 2007-12-17 17:26:32 +00:00
parent 8b953b3f9d
commit b5f992b93d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174718

View File

@ -72,6 +72,7 @@ mac_posixsem_label_free(struct label *label)
{
MAC_PERFORM(posixsem_destroy_label, label);
mac_labelzone_free(label);
}
void