Mercurial > hg > nginx
diff src/core/ngx_rbtree.c @ 1764:bead8ca82404
clean rbtree node for all removals
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 Dec 2007 15:32:51 +0000 |
parents | 3c0b44825071 |
children | d620f497c50f |
line wrap: on
line diff
--- a/src/core/ngx_rbtree.c +++ b/src/core/ngx_rbtree.c @@ -242,13 +242,13 @@ ngx_rbtree_delete(ngx_thread_volatile ng 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;