alloc: remove valgrind warning from test.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Oct 2012 11:03:18 +0000 (21:33 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Oct 2012 11:03:18 +0000 (21:33 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/alloc/test/run.c

index 7c8fce3d76fd0f2202d4a136b1ce89712993c4cb..f9981e7038fb736166b74381ba26db6f3ab20881 100644 (file)
@@ -162,6 +162,7 @@ static void test(unsigned int pool_size)
        ok1(alloc_check(mem, pool_size));
 
        free(mem);
+       free(p);
 }
 
 int main(int argc, char *argv[])