Module: ngircd.git Branch: branch-0-12-x Commit: b00a08ef405746ecbdb8b44ba825d1c5a254dfb0 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=b00a08ef4... Author: Alexander Barton <alex@barton.de> Date: Sun Jan 4 15:22:32 2009 +0100 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) --- src/ngircd/channel.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index 32f911a..44133e4 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;