summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2018-09-07 13:36:18 -0400
committerSteve Dickson <steved@redhat.com>2018-09-11 11:58:11 -0400
commit3b2e5372a2017ec2b1c4924e53ab1ffc6bc15712 (patch)
tree253564a5e0ed57498a34d7ec08766ed57e51a977 /src
parent830e3f6193439a68993ccceebd6ea5987d785657 (diff)
downloadti-rpc-3b2e5372a2017ec2b1c4924e53ab1ffc6bc15712.tar.gz
rtime.c: resource_leak
Handle variable "s" going out of scope leaks the handle. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/rtime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rtime.c b/src/rtime.c
index b642840..29fbf0a 100644
--- a/src/rtime.c
+++ b/src/rtime.c
@@ -90,6 +90,7 @@ rtime(addrp, timep, timeout)
/* TCP and UDP port are the same in this case */
if ((serv = getservbyname("time", "tcp")) == NULL) {
+ do_close(s);
return(-1);
}