]> git.ozlabs.org Git - ccan-lca-2011.git/commitdiff
rbtree: don't use temporary context to destroy rbtree
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 05:17:24 +0000 (15:47 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 05:17:24 +0000 (15:47 +1030)
It leads to a memory leak if the allocation fails (as we reparent onto NULL).
Also, the extra allocation in the failure path increases test time for
failtest (under valgrind) by a factor of 2.


No differences found