forked from github/server
PR 929: fix memory leak
This commit is contained in:
parent
219ec117c6
commit
6bba2a2ed7
|
@ -1303,6 +1303,7 @@ static void remove_idle_players(void)
|
|||
|
||||
i = turn + 1;
|
||||
if (i < 4) i = 4;
|
||||
free(age);
|
||||
age = calloc(i, sizeof(int));
|
||||
if (!age) abort();
|
||||
for (fp = &factions; *fp;) {
|
||||
|
|
Loading…
Reference in New Issue