mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Call deallocate() in matching.c test routines
This is mostly so that the function is used at all, but I've also removed another memory leak from --autotest mode to make it apparently leak-free. The testing from standard input mode has more leaks than I want to fix.
This commit is contained in:
@ -573,6 +573,7 @@ void matching_from_user_input(FILE *fp, const char *filename)
|
|||||||
printf("%s %s\n", Lnn->name, Rnn->name);
|
printf("%s %s\n", Lnn->name, Rnn->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
deallocate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_subsets(void)
|
void test_subsets(void)
|
||||||
@ -679,6 +680,8 @@ void test_subsets(void)
|
|||||||
j, j+1, st->min, st->max, st->sx/st->n,
|
j, j+1, st->min, st->max, st->sx/st->n,
|
||||||
(st->sxx - st->sx*st->sx/st->n) / st->n);
|
(st->sxx - st->sx*st->sx/st->n) / st->n);
|
||||||
}
|
}
|
||||||
|
sfree(edgecounts);
|
||||||
|
deallocate();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
Reference in New Issue
Block a user