summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2018-09-07 12:41:30 -0400
committerSteve Dickson <steved@redhat.com>2018-09-11 11:58:11 -0400
commit757f37907a013ed9154a98201790a8223961a2d7 (patch)
treec09bdc0d4eafab7e4ec56eb637f72a2065010ba1
parent489dd50140eadb8bad1b37b5ec49078d43735bb9 (diff)
downloadti-rpc-757f37907a013ed9154a98201790a8223961a2d7.tar.gz
clnt_bcast.c: resource_leak
Variable "sys_auth" going out of scope leaks the storage it points to. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--src/clnt_bcast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clnt_bcast.c b/src/clnt_bcast.c
index 98cf061..2ad6c89 100644
--- a/src/clnt_bcast.c
+++ b/src/clnt_bcast.c
@@ -330,6 +330,7 @@ rpc_broadcast_exp(prog, vers, proc, xargs, argsp, xresults, resultsp,
if (nettype == NULL)
nettype = "datagram_n";
if ((handle = __rpc_setconf(nettype)) == NULL) {
+ AUTH_DESTROY(sys_auth);
return (RPC_UNKNOWNPROTO);
}
while ((nconf = __rpc_getconf(handle)) != NULL) {