]> git.ozlabs.org Git - ccan/commit
tal: tal_steal() fix.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 19 Nov 2012 00:23:57 +0000 (10:53 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 19 Nov 2012 00:23:57 +0000 (10:53 +1030)
commitf243444490e8dcdaa399942b70e72d03005370f7
treee947c787c1df77eba04ab610206fd771e5753127
parentdfe59969500a0c4e3b82ce6e7f8227d1a6e7b178
tal: tal_steal() fix.

We call remove_node() in tal_steal, then re-use the node.  So it's important
that we always unlink the group property from the node for that case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/tal.c
ccan/tal/test/run-steal.c [new file with mode: 0644]