leak: region_owner data was never released

This commit is contained in:
Enno Rehling 2015-10-14 12:22:37 +02:00
parent 8e9e9c9c0f
commit bdf4834dc2
1 changed files with 1 additions and 0 deletions

View File

@ -753,6 +753,7 @@ void remove_region(region ** rlist, region * r)
static void freeland(land_region * lr) static void freeland(land_region * lr)
{ {
free(lr->ownership);
while (lr->demands) { while (lr->demands) {
struct demand *d = lr->demands; struct demand *d = lr->demands;
lr->demands = d->next; lr->demands = d->next;