diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-16 21:17:09 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-18 00:13:15 +0000 |
| commit | a7e738aceb36e4a70d41cf09a74b2d7a3af6cbe0 (patch) | |
| tree | 915826452f978024dafa39e4e23b4c4e3569ec62 /matching.c | |
| parent | 1717d5b685828ce3ab22a82d073022ce69de6bcf (diff) | |
| download | puzzles-a7e738aceb36e4a70d41cf09a74b2d7a3af6cbe0.zip puzzles-a7e738aceb36e4a70d41cf09a74b2d7a3af6cbe0.tar.gz puzzles-a7e738aceb36e4a70d41cf09a74b2d7a3af6cbe0.tar.bz2 puzzles-a7e738aceb36e4a70d41cf09a74b2d7a3af6cbe0.tar.xz | |
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.
Diffstat (limited to 'matching.c')
| -rw-r--r-- | matching.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -573,6 +573,7 @@ void matching_from_user_input(FILE *fp, const char *filename) printf("%s %s\n", Lnn->name, Rnn->name); } } + deallocate(); } void test_subsets(void) @@ -679,6 +680,8 @@ void test_subsets(void) j, j+1, st->min, st->max, st->sx/st->n, (st->sxx - st->sx*st->sx/st->n) / st->n); } + sfree(edgecounts); + deallocate(); } int main(int argc, char **argv) |