Bug: Outcast clan deity string is not being freed.
Discovered in: AFKMud 1.7
Danger: Low - Uncommonly reached memory leak.
Found by: GatewaySysop
Fixed by: GatewaySysop
---
clans.c, do_outcast
Locate:
if( !str_cmp( victim->name, ch->pcdata->clan->number2 ) )
STRFREE( ch->pcdata->clan->number2 );
Below that, add:
if( !str_cmp( victim->name, ch->pcdata->clan->deity ) )
STRFREE( ch->pcdata->clan->deity );
In the unlikely event a clan's deity is outcast, the string data for that person's name is never freed and will cause a small one-time memory leak.