aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-06-05 15:38:12 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-06-05 15:38:12 +0000
commit1df6229aeab3e46661111b77846b8aa1e929c1ec (patch)
tree0f2aa3fc10ae1ff888f8437be75170446c9b9145 /sys/security
parent7ebfc8df78a0b0fe2c745ca2ca74d6bc72f9e52b (diff)
downloadsrc-1df6229aeab3e46661111b77846b8aa1e929c1ec.tar.gz
src-1df6229aeab3e46661111b77846b8aa1e929c1ec.zip
Consistently use audit_free() to free records, rather than
directly invoking uma_zfree(). Perforce change: 96652 Obtained from: TrustedBSD Project
Notes
Notes: svn path=/head/; revision=159275
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c
index d61bb9932c1f..7465543e0bd3 100644
--- a/sys/security/audit/audit.c
+++ b/sys/security/audit/audit.c
@@ -395,7 +395,7 @@ audit_commit(struct kaudit_record *ar, int error, int retval)
mtx_lock(&audit_mtx);
audit_pre_q_len--;
mtx_unlock(&audit_mtx);
- uma_zfree(audit_record_zone, ar);
+ audit_free(ar);
return;
}
@@ -421,7 +421,7 @@ audit_commit(struct kaudit_record *ar, int error, int retval)
if (audit_suspended || !audit_enabled) {
audit_pre_q_len--;
mtx_unlock(&audit_mtx);
- uma_zfree(audit_record_zone, ar);
+ audit_free(ar);
return;
}