rbtree: don't use temporary context to destroy rbtree
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.
Showing
Please register or sign in to comment