mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
clean rbtree node for all removals
This commit is contained in:
parent
2204d9f09d
commit
374d224672
@ -242,14 +242,14 @@ 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 */
|
|
||||||
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) {
|
if (red) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user