forked from github/server
leak: some tests were leaking seen_factions becaus they don't call destroyfaction or render reports
This commit is contained in:
parent
66dd7e2320
commit
f0671aafda
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue