+
+ /* Free all the channels */
+ for(i=0;i<CHANNELHASHSIZE;i++) {
+ for (cip=chantable[i];cip;cip=ncip) {
+ ncip=cip->next;
+ if ((cp=cip->channel))
+ delchannel(cp);
+ }
+ }
+
+ /* We also need to remove the channels array from each user */
+ for (i=0;i<NICKHASHSIZE;i++) {
+ for (np=nicktable[i];np;np=np->next) {
+ array_free(np->channels);
+ free(np->channels);
+ }
+ }
+
+ nsfreeall(POOL_CHANNEL);