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;
     }