summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2018-09-07 13:34:50 -0400
committerSteve Dickson <steved@redhat.com>2018-09-11 11:58:11 -0400
commit830e3f6193439a68993ccceebd6ea5987d785657 (patch)
tree1be759cc9cd81388ca8fee9f2f20664a50012f52 /src
parentc0885a7295af1199f46752a834ad928ceb3e5f37 (diff)
downloadti-rpc-830e3f6193439a68993ccceebd6ea5987d785657.tar.gz
rpcb_clnt.c: resource_leak
Variable "nc_handle" going out of scope leaks the storage it points to. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/rpcb_clnt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c
index e45736a..0c34cb7 100644
--- a/src/rpcb_clnt.c
+++ b/src/rpcb_clnt.c
@@ -547,6 +547,7 @@ try_nconf:
if (tmpnconf == NULL) {
rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
mutex_unlock(&loopnconf_lock);
+ endnetconfig(nc_handle);
return (NULL);
}
loopnconf = getnetconfigent(tmpnconf->nc_netid);