Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2004 13:26:02 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 45358 for review
Message-ID:  <200401142126.i0ELQ225019414@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }	
 	



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401142126.i0ELQ225019414>