Commit cae56e4d authored by Rusty Russell's avatar Rusty Russell

alloc: fix memory leak in tests.

parent 76d74cfb
......@@ -160,6 +160,8 @@ static void test(unsigned int pool_size)
ok1(alloc_size(mem, pool_size, p[0]) < pool_size);
alloc_free(mem, pool_size, p[0]);
ok1(alloc_check(mem, pool_size));
free(mem);
}
int main(int argc, char *argv[])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment