From: Alexander Barton Date: Sun, 4 Jan 2009 14:22:32 +0000 (+0100) Subject: Free topic array on channel deletion. X-Git-Url: https://arthur.barton.de/gitweb/?p=ngircd.git;a=commitdiff_plain;h=b00a08ef405746ecbdb8b44ba825d1c5a254dfb0 Free topic array on channel deletion. The topic array in the CHANNEL structure must be free()'d before the channel itself becomes deleted. (backport of commit 18efc7469c of master branch) --- diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index 32f911a2..44133e49 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -1027,9 +1027,9 @@ Delete_Channel( CHANNEL *Chan ) Log( LOG_DEBUG, "Freed channel structure for \"%s\".", Chan->name ); - /* Invite- und Ban-Lists aufraeumen */ - Lists_Free( &chan->list_bans ); - Lists_Free( &chan->list_invites ); + array_free(&chan->topic); + Lists_Free(&chan->list_bans); + Lists_Free(&chan->list_invites); /* Neu verketten und freigeben */ if( last_chan ) last_chan->next = chan->next;