diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2000-06-11 05:25:18 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2000-06-11 05:25:18 +0000 |
commit | 4edcef1a832a8dc8078dabf857a6cfc1f01c18a8 (patch) | |
tree | 7b752dd578f91762756b470a6f0c844772983cc2 | |
parent | 1be667adbf9e5f99c230901fcd8674fec839bc20 (diff) | |
download | src-4edcef1a832a8dc8078dabf857a6cfc1f01c18a8.tar.gz src-4edcef1a832a8dc8078dabf857a6cfc1f01c18a8.zip |
MFC 1.37, fix memory leak in mount_nfs background mode
Notes
Notes:
svn path=/stable/3/; revision=61537
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index be1ddadd16db..9988b1641a6a 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -836,10 +836,11 @@ tryagain: 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) { |