forked from github/server
null-pointer crash when running with --lomem
This commit is contained in:
parent
0e74ca4ef7
commit
d09071eff7
|
@ -185,7 +185,7 @@ destroyfaction(faction * f)
|
||||||
while (f->battles) {
|
while (f->battles) {
|
||||||
struct bmsg * bm = f->battles;
|
struct bmsg * bm = f->battles;
|
||||||
f->battles = bm->next;
|
f->battles = bm->next;
|
||||||
free_messagelist(bm->msgs);
|
if (bm->msgs) free_messagelist(bm->msgs);
|
||||||
free(bm);
|
free(bm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue