Bug: Council head2 string is not being freed on outcast.
Danger: Low - Uncommonly reached memory leak.
Found by: Gatewaysysop
Fixed by: Gatewaysysop
if( victim->pcdata->council != ch->pcdata->council )
send_to_char( "This player does not belong to your council!\n\r", ch );
Below that, add:
if( council->head2 && !str_cmp( victim->name, ch->pcdata->council->head2 ) )
STRFREE( ch->pcdata->council->head2 );
ch->pcdata->council->head2 = NULL;
Councils have a #2 position and if that person should happen to get outcast, the head2 member of the council_data struct will not be freed, resulting in a small one-time memory leak.