clean rbtree node for all removals

This commit is contained in:
Igor Sysoev 2007-12-21 15:32:51 +00:00
parent 0c89e11d88
commit 273ac50acd

View file

@ -242,14 +242,14 @@ ngx_rbtree_delete(ngx_thread_volatile ngx_rbtree_t *tree,
if (subst->right != sentinel) {
subst->right->parent = subst;
}
/* DEBUG stuff */
node->left = NULL;
node->right = NULL;
node->parent = NULL;
node->key = 0;
}
/* DEBUG stuff */
node->left = NULL;
node->right = NULL;
node->parent = NULL;
node->key = 0;
if (red) {
return;
}