From owner-p4-projects@FreeBSD.ORG Thu May 4 12:16:35 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9774716A403; Thu, 4 May 2006 12:16:35 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E3AB16A401 for ; Thu, 4 May 2006 12:16:35 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27FC643D53 for ; Thu, 4 May 2006 12:16:35 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k44CGYhh090594 for ; Thu, 4 May 2006 12:16:35 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k44CGY9g090588 for perforce@freebsd.org; Thu, 4 May 2006 12:16:34 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 4 May 2006 12:16:34 GMT Message-Id: <200605041216.k44CGY9g090588@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 96652 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2006 12:16:35 -0000 http://perforce.freebsd.org/chv.cgi?CH=96652 Change 96652 by rwatson@rwatson_zoo on 2006/05/04 12:16:22 Consistently use audit_free() to free records, rather than directly invoking uma_zfree(). Affected files ... .. //depot/projects/trustedbsd/audit3/sys/security/audit/audit.c#26 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit.c#26 (text+ko) ==== @@ -390,7 +390,7 @@ mtx_lock(&audit_mtx); audit_pre_q_len--; mtx_unlock(&audit_mtx); - uma_zfree(audit_record_zone, ar); + audit_free(ar); return; } @@ -416,7 +416,7 @@ if (audit_suspended || !audit_enabled) { audit_pre_q_len--; mtx_unlock(&audit_mtx); - uma_zfree(audit_record_zone, ar); + audit_free(ar); return; }