From owner-p4-projects@FreeBSD.ORG Wed Jan 14 13:26:09 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6F8DC16A4D0; Wed, 14 Jan 2004 13:26:09 -0800 (PST) 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 4AB6216A4CE for ; Wed, 14 Jan 2004 13:26:09 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E57B43D68 for ; Wed, 14 Jan 2004 13:26:03 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0ELQ30B019417 for ; Wed, 14 Jan 2004 13:26:03 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0ELQ225019414 for perforce@freebsd.org; Wed, 14 Jan 2004 13:26:02 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 14 Jan 2004 13:26:02 -0800 (PST) Message-Id: <200401142126.i0ELQ225019414@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 Subject: PERFORCE change 45358 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 21:26:09 -0000 http://perforce.freebsd.org/chv.cgi?CH=45358 Change 45358 by rwatson@rwatson_tislabs on 2004/01/14 13:25:02 Clean up from changes to vn_fullpath(). Affected files ... .. //depot/projects/trustedbsd/audit2/sys/compat/linprocfs/linprocfs.c#5 edit Differences ... ==== //depot/projects/trustedbsd/audit2/sys/compat/linprocfs/linprocfs.c#5 (text+ko) ==== @@ -348,8 +348,8 @@ struct nameidata nd; struct mount *mp; const char *lep; - char *dlep, *flep, *mntto, *mntfrom, *fstype; - char *fullpath, *lep; + char *flep, *mntto, *mntfrom, *fstype; + char *fullpath; size_t lep_len; int error; @@ -405,7 +405,7 @@ sbuf_printf(sb, " 0 0\n"); } mtx_unlock(&mountlist_mtx); - free(fullpath); + free(fullpath, M_TEMP); return (error); } @@ -764,7 +764,7 @@ sbuf_printf(sb, "%s", fullpath); else sbuf_printf(sb, "unknown"); - free(fullpath); + free(fullpath, M_TEMP); return (0); } @@ -857,7 +857,6 @@ ((uio->uio_resid > 0) && (entry != &map->header)); entry = entry->next) { name = ""; - freename = NULL; if (entry->eflags & MAP_ENTRY_IS_SUB_MAP) continue; obj = entry->object.vm_object; @@ -917,7 +916,7 @@ } if (map != &curthread->td_proc->p_vmspace->vm_map) vm_map_unlock_read(map); - free(fullpath); + free(fullpath, M_TEMP); return (error); }