mirror of
https://github.com/nginx/nginx.git
synced 2025-06-17 09:13:04 +08:00
clean rbtree node for all removals
This commit is contained in:
parent
2204d9f09d
commit
374d224672
@ -242,13 +242,13 @@ ngx_rbtree_delete(ngx_thread_volatile ngx_rbtree_t *tree,
|
|||||||
if (subst->right != sentinel) {
|
if (subst->right != sentinel) {
|
||||||
subst->right->parent = subst;
|
subst->right->parent = subst;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* DEBUG stuff */
|
/* DEBUG stuff */
|
||||||
node->left = NULL;
|
node->left = NULL;
|
||||||
node->right = NULL;
|
node->right = NULL;
|
||||||
node->parent = NULL;
|
node->parent = NULL;
|
||||||
node->key = 0;
|
node->key = 0;
|
||||||
}
|
|
||||||
|
|
||||||
if (red) {
|
if (red) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user