Fix double-free when removing a ban.
del_id() should not free the ban anymore, its caller does that now.
This commit is contained in:
parent
f890420014
commit
93fbe9c349
1 changed files with 0 additions and 1 deletions
|
@ -290,7 +290,6 @@ del_id(struct Channel *chptr, const char *banid, rb_dlink_list * list, long mode
|
|||
if(irccmp(banid, banptr->banstr) == 0)
|
||||
{
|
||||
rb_dlinkDelete(&banptr->node, list);
|
||||
free_ban(banptr);
|
||||
|
||||
/* invalidate the can_send() cache */
|
||||
if(mode_type == CHFL_BAN || mode_type == CHFL_QUIET || mode_type == CHFL_EXCEPTION)
|
||||
|
|
Loading…
Reference in a new issue