tally: fix FreeBSD compile, memleak in tests.
[ccan] / ccan / tally / tally.c
index 0d0190795557b60ccfe8d73138dfda2baf99477d..b1839befe3b4016287ded6203767be305e65b657 100644 (file)
@@ -1,4 +1,3 @@
-#include "config.h"
 #include <ccan/tally/tally.h>
 #include <ccan/build_assert/build_assert.h>
 #include <ccan/likely/likely.h>
@@ -7,6 +6,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <assert.h>
+#include <stdlib.h>
 
 #define SIZET_BITS (sizeof(size_t)*CHAR_BIT)