ref: a7e738aceb36e4a70d41cf09a74b2d7a3af6cbe0
parent: 1717d5b685828ce3ab22a82d073022ce69de6bcf
author: Ben Harris <[email protected]>
date: Thu Feb 16 16:17:09 EST 2023
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.
--- a/matching.c
+++ b/matching.c
@@ -573,6 +573,7 @@
printf("%s %s\n", Lnn->name, Rnn->name);
}
}
+ deallocate();
}
void test_subsets(void)
@@ -679,6 +680,8 @@
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)