(doit): when done, close all fd in the sockets array and free it.

Coverity NetBSD CID#1916


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17024 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-09 17:45:44 +00:00
parent 1082824558
commit 135a36efb2

View File

@@ -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);