]> git.ozlabs.org Git - ccan/blobdiff - ccan/tally/test/run-renormalize.c
tally: fix FreeBSD compile, memleak in tests.
[ccan] / ccan / tally / test / run-renormalize.c
index 5ec8b6780d41fa988e910a8001edaf1346306e07..8fe9dbce329c1576a9762c2e14a0ca03123cc4ff 100644 (file)
@@ -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();
 }