mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Consistently use audit_free() to free records, rather than
directly invoking uma_zfree(). Perforce change: 96652 Obtained from: TrustedBSD Project
This commit is contained in:
parent
7ebfc8df78
commit
1df6229aea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159275
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue