override: don't leak the old expiry timer list
This commit is contained in:
parent
cc75db3f3f
commit
6637a54728
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue