git.samba.org
/
metze
/
heimdal
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1082824
)
(doit): when done, close all fd in the sockets array and free it.
author
Love Hörnquist Åstrand
<lha@kth.se>
Sun, 9 Apr 2006 17:45:44 +0000
(17:45 +0000)
committer
Love Hörnquist Åstrand
<lha@kth.se>
Sun, 9 Apr 2006 17:45:44 +0000
(17:45 +0000)
Coverity NetBSD CID#1916
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17024
ec53bebd
-3082-4978-b11e-
865c3cabbd6b
kpasswd/kpasswdd.c
patch
|
blob
|
history
diff --git
a/kpasswd/kpasswdd.c
b/kpasswd/kpasswdd.c
index e3a07412f75d40c94be55719626c65c42b37cad9..35dc7cb1b16c47f57278db90adb787234c3f2101 100644
(file)
--- a/
kpasswd/kpasswdd.c
+++ b/
kpasswd/kpasswdd.c
@@
-689,6
+689,11
@@
doit (krb5_keytab keytab, int port)
buf, ret);
}
}
+
+ for (i = 0; i < n; ++i)
+ close(sockets[i]);
+ free(sockets);
+
krb5_free_addresses (context, &addrs);
krb5_free_host_realm (context, realms);
krb5_free_context (context);