]> arthur.barton.de Git - ngircd.git/commitdiff
Free topic array on channel deletion.
authorAlexander Barton <alex@barton.de>
Sun, 4 Jan 2009 14:22:32 +0000 (15:22 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 4 Jan 2009 14:22:32 +0000 (15:22 +0100)
The topic array in the CHANNEL structure must be free()'d before the
channel itself becomes deleted.

src/ngircd/channel.c

index 29b8becdcb221e62d896b2d5449eb96405d38b68..6958831ad79ce678db1c3c58366cf54b328dd75a 100644 (file)
@@ -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;