From: Alexander Barton Date: Sun, 4 Jan 2009 14:22:32 +0000 (+0100) Subject: Free topic array on channel deletion. X-Git-Tag: rel-14-rc1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18efc7469c5923a298a218ee2d17f518cff184fa;p=ngircd Free topic array on channel deletion. The topic array in the CHANNEL structure must be free()'d before the channel itself becomes deleted. --- diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index 29b8becd..6958831a 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -1086,9 +1086,9 @@ Delete_Channel( CHANNEL *Chan ) Log( LOG_DEBUG, "Freed channel structure for \"%s\".", Chan->name ); - /* free invite and ban lists */ - Lists_Free( &chan->list_bans ); - Lists_Free( &chan->list_invites ); + array_free(&chan->topic); + Lists_Free(&chan->list_bans); + Lists_Free(&chan->list_invites); /* maintain channel list */ if( last_chan ) last_chan->next = chan->next;