diff --git a/kike.c b/kike.c index 7bbfef4..a2820ee 100644 --- a/kike.c +++ b/kike.c @@ -601,6 +601,10 @@ server_context_free (struct server_context *self) for (link = self->clients; link; link = tmp) { tmp = link->next; + // FIXME: either make sure this isn't called (which it can as of now, + // see on_irc_quit_timeout) or fix client_free() to unregister from + // the poller before closing the socket (we could also just + // set .closed = true). client_free (link); free (link); }