PERFORCE change 45358 for review

Robert Watson rwatson at FreeBSD.org
Wed Jan 14 13:26:09 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=45358

Change 45358 by rwatson at 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);
 }	
 	


More information about the p4-projects mailing list