commit | 374d224672091c787f9480689295059e5f5568db | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri Dec 21 15:32:51 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri Dec 21 15:32:51 2007 +0000 |
tree | 4bd1aa6ff2accd5628fdb0a36a904ac93733ff60 | |
parent | 2204d9f09df452063a92c5694d30774acb7a4ec2 [diff] |
clean rbtree node for all removals
diff --git a/src/core/ngx_rbtree.c b/src/core/ngx_rbtree.c index 7d240fe..749b601 100644 --- a/src/core/ngx_rbtree.c +++ b/src/core/ngx_rbtree.c
@@ -242,14 +242,14 @@ 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; }