|
|
@ -322,6 +322,9 @@ void remove_node(TreeAlloc **root_ptr, TreeAlloc *node) { |
|
|
|
node->left->parent = tmp; |
|
|
|
} |
|
|
|
|
|
|
|
// Make sure that it doesn't have any tree pointers it shouldn't have. |
|
|
|
node->parent = node->left = node->right = NULL; |
|
|
|
|
|
|
|
if (replace && replace->parent == NULL) { |
|
|
|
#ifdef DEBUG |
|
|
|
printf("=== PRE-REMOVE-FIXUP ===\n"); |
|
|
|