When the mac_bsdextended policy is unloaded, free rule memory.
Obtained from: TrustedBSD Project MFC after: 3 days
This commit is contained in:
parent
26041a143b
commit
168a6ae7a7
@ -214,7 +214,12 @@ ugidfw_init(struct mac_policy_conf *mpc)
|
||||
static void
|
||||
ugidfw_destroy(struct mac_policy_conf *mpc)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAC_BSDEXTENDED_MAXRULES; i++) {
|
||||
if (rules[i] != NULL)
|
||||
free(rules[i], M_MACBSDEXTENDED);
|
||||
}
|
||||
mtx_destroy(&ugidfw_mtx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user