diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-06-05 15:38:12 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-06-05 15:38:12 +0000 |
commit | 97c0c78df70e64fd7f0d13f3b2cf1a39485d6f42 (patch) | |
tree | 0f2aa3fc10ae1ff888f8437be75170446c9b9145 /sys/security | |
parent | 590882238f6227120968085933b61a58b05d0213 (diff) | |
download | FreeBSD-src-97c0c78df70e64fd7f0d13f3b2cf1a39485d6f42.zip FreeBSD-src-97c0c78df70e64fd7f0d13f3b2cf1a39485d6f42.tar.gz |
Consistently use audit_free() to free records, rather than
directly invoking uma_zfree().
Perforce change: 96652
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/audit/audit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index d61bb99..7465543 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; } |