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:
parent
e1eb172980
commit
9c41fc0919
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61536
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user