X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftally%2Ftest%2Frun-renormalize.c;h=8fe9dbce329c1576a9762c2e14a0ca03123cc4ff;hp=5ec8b6780d41fa988e910a8001edaf1346306e07;hb=0284423676209380a2e07086b9b356096a2f93e6;hpb=7a36f69eea4ee572bdf191d6048350751cd2ab5b diff --git a/ccan/tally/test/run-renormalize.c b/ccan/tally/test/run-renormalize.c index 5ec8b678..8fe9dbce 100644 --- a/ccan/tally/test/run-renormalize.c +++ b/ccan/tally/test/run-renormalize.c @@ -3,7 +3,7 @@ int main(void) { - struct tally *tally = tally_new(1); + struct tally *tally = tally_new(2); plan_tests(4); tally->min = 0; @@ -21,5 +21,6 @@ int main(void) ok1(tally->counts[0] == 2); ok1(tally->counts[1] == 0); + free(tally); return exit_status(); }