forked from github/server
memory leaked by item reports in the CR.
This commit is contained in:
parent
7c8b416338
commit
304ac20747
|
@ -864,6 +864,14 @@ cr_output_unit(FILE * F, const region * r,
|
|||
}
|
||||
fprintf(F, "%d;%s\n", in, add_translation(ic, locale_string(f->locale, ic)));
|
||||
}
|
||||
if (show!=u->items) {
|
||||
/* free the temporary items */
|
||||
while (show) {
|
||||
item * ishow = show;
|
||||
show = show->next;
|
||||
i_free(ishow);
|
||||
}
|
||||
}
|
||||
|
||||
if ((u->faction == f || omniscient(f)) && u->botschaften)
|
||||
cr_output_str_list(F, "EINHEITSBOTSCHAFTEN", u->botschaften, f);
|
||||
|
|
Loading…
Reference in New Issue