tal: don't automatically register cleanup function.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Dec 2012 03:25:42 +0000 (13:55 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Dec 2012 03:25:42 +0000 (13:55 +1030)
commit8cf5b6208cad807228a69d695e6521122d4b71da
tree7dd65fa6e9f622bb028171525abc0834fea50c35
parentd21d629add995fe2eefd4290d62499671715b1a9
tal: don't automatically register cleanup function.

It may interfere with other at_exit() calls, so let them call it manually.
Also, use memset to zero, which really does make valgrind notice any leaks.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
19 files changed:
ccan/tal/tal.c
ccan/tal/tal.h
ccan/tal/test/run-allocfail.c
ccan/tal/test/run-array.c
ccan/tal/test/run-count.c
ccan/tal/test/run-destructor.c
ccan/tal/test/run-expand.c
ccan/tal/test/run-free.c
ccan/tal/test/run-groups-grow.c
ccan/tal/test/run-iter.c
ccan/tal/test/run-named-debug.c
ccan/tal/test/run-named-nolabels.c
ccan/tal/test/run-named.c
ccan/tal/test/run-notifier.c
ccan/tal/test/run-overflow.c
ccan/tal/test/run-steal.c
ccan/tal/test/run-take.c
ccan/tal/test/run-test-backend.c
ccan/tal/test/run.c