Fix memory leak in mount_nfs's background (-b) mode which occurs when

the mount is not available.

Submitted-by: Jonathan Hanna <pangolin@home.com>
This commit is contained in:
Matthew Dillon 2000-06-11 05:19:58 +00:00
parent e1eb172980
commit 9c41fc0919
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61536

View File

@ -784,10 +784,11 @@ getnfsargs(spec, nfsargsp)
warnx("%s", clnt_sperror(clp,
"bad MNT RPC"));
} else {
auth_destroy(clp->cl_auth);
clnt_destroy(clp);
retrycnt = 0;
}
auth_destroy(clp->cl_auth);
clnt_destroy(clp);
so = RPC_ANYSOCK;
}
}
if (--retrycnt > 0) {