override: don't leak the old expiry timer list

This commit is contained in:
Ed Kellett 2019-07-27 01:59:28 +01:00
parent cc75db3f3f
commit 6637a54728
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -309,10 +309,18 @@ _modinit(void)
static void
_moddeinit(void)
{
rb_dlink_node *n, *tn;
/* disable the umode and remove it from the available list */
user_modes['p'] = 0;
construct_umodebuf();
RB_DLINK_FOREACH_SAFE(n, tn, overriding_opers.head)
{
rb_dlinkDelete(n, &overriding_opers);
rb_free(n->data);
}
rb_event_delete(expire_override_deadlines_ev);
}