tally: fix FreeBSD compile, memleak in tests.
[ccan] / ccan / tally / test / run-median.c
index f461c2ec8f9b71f1dc7b2dac1de1ff1d163b0f4c..b12fd8a021a191bddef52f9ec23738ea178bd5c8 100644 (file)
@@ -40,6 +40,7 @@ int main(void)
                ok1(median - (ssize_t)err <= i/2
                    && median + (ssize_t)err >= i/2);
        }
+       free(tally);
 
        return exit_status();
 }