leak: some tests were leaking seen_factions becaus they don't call destroyfaction or render reports

This commit is contained in:
Enno Rehling 2015-10-13 23:33:11 +02:00
parent 66dd7e2320
commit f0671aafda

View file

@ -94,6 +94,10 @@ void free_faction(faction * f)
free(f->banner);
free(f->passw);
free(f->name);
if (f->seen_factions) {
ql_free(f->seen_factions);
f->seen_factions = 0;
}
while (f->attribs) {
a_remove(&f->attribs, f->attribs);