From 11233aabf86ee32896dcd803bc7e8174d73af3ec Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Sun, 22 Feb 2004 01:17:47 +0000 Subject: [PATCH] If mountnfs returns an error, it will have already freed nam; no need to free it again. Reported by: "Ted Unangst" Approved by: rwatson (mentor) --- sys/nfsclient/nfs_vfsops.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index efc87727788..8970a9c7dc5 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -507,7 +507,6 @@ nfs_mountdiskless(char *path, char *which, int mountflag, if ((error = mountnfs(args, mp, nam, which, path, vpp, td->td_ucred)) != 0) { printf("nfs_mountroot: mount %s on %s: %d", path, which, error); - FREE(nam, M_SONAME); return (error); } (void) copystr(which, mp->mnt_stat.f_mntonname, MNAMELEN - 1, 0);