]> git.ozlabs.org Git - ccan/commit
rbtree: fix memory leak in tests
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 05:51:24 +0000 (16:21 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 05:51:24 +0000 (16:21 +1030)
commit8d20b53ecd76773591e95db3bdfcbbd5129efb9e
treef57010c18f8f5702d3bab8c37baf239fdbad0e7f
parent6a13cea6a9055092f52dec6f74c09d99d673dd0e
rbtree: fix memory leak in tests

The data is not made a child of the tree: the nodes are made children of the
data.  So we must explicitly free the data objects.
ccan/rbtree/test/run-many.c
ccan/rbtree/test/run.c