closing file descriptors.
ticket: 1210
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16789
dc483132-0cff-0310-8789-
dd5450dbe970
2004-09-23 Ken Raeburn <raeburn@mit.edu>
+ * network.c (closedown_network): Free each connection data
+ structure while closing file descriptors.
+
* kdc_util.h (sockaddr2p): Don't declare.
2004-07-23 Tom Yu <tlyu@mit.edu>
if (conn->fd >= 0)
(void) close(conn->fd);
DEL (connections, i);
+ /* There may also be per-connection data in the tcp structure
+ (tcp.buffer, tcp.response) that we're not freeing here.
+ That should only happen if we quit with a connection in
+ progress. */
+ free(conn);
}
FREE_SET_DATA(connections);
FREE_SET_DATA(udp_port_data);