Hunting leaks in B-tree and tests.