]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/test/run-destructor.c
tal: handle take() pointers more carefully.
[ccan] / ccan / tal / test / run-destructor.c
index 30c5136b5b4452aba1fe7f49cb5799f60cd88a80..7183f7c5b5a3daaff2e543d35e9f25c6d33366a2 100644 (file)
@@ -24,7 +24,7 @@ static void destroy_child(char *p)
        destroy_count++;
 }
 
-static void destroy_inc(char *p)
+static void destroy_inc(char *p UNNEEDED)
 {
        destroy_count++;
 }
@@ -63,5 +63,6 @@ int main(void)
        tal_free(parent);
        ok1(destroy_count == 4);
 
+       tal_cleanup();
        return exit_status();
 }