summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2018-09-07 13:39:53 -0400
committerSteve Dickson <steved@redhat.com>2018-09-11 11:58:11 -0400
commit92d4b35e0721e470686cd304b95c46ddd4a0d812 (patch)
tree175361459510be5beca3e1619fe35d020bc51e5a /src
parent3b2e5372a2017ec2b1c4924e53ab1ffc6bc15712 (diff)
downloadti-rpc-92d4b35e0721e470686cd304b95c46ddd4a0d812.tar.gz
svc_generic.c: resource_leak
Variable "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/svc_generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svc_generic.c b/src/svc_generic.c
index 52a56c2..20abaa2 100644
--- a/src/svc_generic.c
+++ b/src/svc_generic.c
@@ -113,6 +113,7 @@ svc_create(dispatch, prognum, versnum, nettype)
if (l == NULL) {
warnx("svc_create: no memory");
mutex_unlock(&xprtlist_lock);
+ __rpc_endconf(handle);
return (0);
}
l->xprt = xprt;