diff options
| author | Christian S.J. Peron <csjp@FreeBSD.org> | 2008-05-27 14:18:02 +0000 |
|---|---|---|
| committer | Christian S.J. Peron <csjp@FreeBSD.org> | 2008-05-27 14:18:02 +0000 |
| commit | 1f84ab0f2a69103cc9453c9c4c2d225f14c67707 (patch) | |
| tree | 5e8e86b52ed1bfc8d8ebe6a765f84055a63cfe1c /sys/security/mac | |
| parent | 2da0808aec5877d2a0ee63cd988ef1ae870c95ed (diff) | |
Notes
Diffstat (limited to 'sys/security/mac')
| -rw-r--r-- | sys/security/mac/mac_inet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/security/mac/mac_inet.c b/sys/security/mac/mac_inet.c index cdf9b6920e7f..9356cd0b3bfc 100644 --- a/sys/security/mac/mac_inet.c +++ b/sys/security/mac/mac_inet.c @@ -369,6 +369,10 @@ mac_syncache_init(struct label **label) * allocation failures back to the syncache code. */ MAC_CHECK(syncache_init_label, *label, M_NOWAIT); + if (error) { + MAC_PERFORM(syncache_destroy_label, *label); + mac_labelzone_free(*label); + } return (error); } |
