rbtree: fix allocation failre paths.