static void session_remove_clients(struct session *se)
{
while (se->clients)
- client_remove_from_session(se->clients);
+ {
+ struct client *cl = se->clients;
+ client_remove_from_session(cl);
+ client_destroy(cl);
+ }
}
// Associates a set of clients with a session;