diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2008-10-27 18:08:12 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2008-10-27 18:08:12 +0000 |
| commit | 168a6ae7a7b17d4cf1c12168f8da3cdb9f26f54d (patch) | |
| tree | b21591ff02b36aa539d3224840349d5f63f2a3db /sys/security | |
| parent | 26041a143bb76d3575b35ac41f0ce69d199aeba8 (diff) | |
Notes
Diffstat (limited to 'sys/security')
| -rw-r--r-- | sys/security/mac_bsdextended/mac_bsdextended.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/security/mac_bsdextended/mac_bsdextended.c b/sys/security/mac_bsdextended/mac_bsdextended.c index 1c8e6c7838b9..14706e0bbd41 100644 --- a/sys/security/mac_bsdextended/mac_bsdextended.c +++ b/sys/security/mac_bsdextended/mac_bsdextended.c @@ -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); } |
