summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-06-25 05:46:03 +0000
committerXin LI <delphij@FreeBSD.org>2017-06-25 05:46:03 +0000
commit863c122dafbc2e939cc8897ccb1e9a5bd9c7f5c2 (patch)
treec0a309e2d17fd4215f55a9bb41238b7cd28f29be /lib
parent3652e3a933d8abcfa84d4a7d9248d943833c61cd (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/rpcb_clnt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/rpcb_clnt.c b/lib/libc/rpc/rpcb_clnt.c
index f9d89c1ae814..8c9b8ca22bfb 100644
--- a/lib/libc/rpc/rpcb_clnt.c
+++ b/lib/libc/rpc/rpcb_clnt.c
@@ -499,14 +499,15 @@ try_nconf:
hostname = IN6_LOCALHOST_STRING;
}
}
- endnetconfig(nc_handle);
if (tmpnconf == NULL) {
+ endnetconfig(nc_handle);
rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
mutex_unlock(&loopnconf_lock);
return (NULL);
}
loopnconf = getnetconfigent(tmpnconf->nc_netid);
/* loopnconf is never freed */
+ endnetconfig(nc_handle);
}
mutex_unlock(&loopnconf_lock);
client = getclnthandle(hostname, loopnconf, NULL);