Commit c00100f8 by formath Committed by Tianqi Chen

delete dependency node (#121)

parent 3ad05398
...@@ -27,6 +27,7 @@ Node::~Node() { ...@@ -27,6 +27,7 @@ Node::~Node() {
for (NodePtr& sp : n->control_deps) { for (NodePtr& sp : n->control_deps) {
if (sp.unique()) { if (sp.unique()) {
stack.push_back(sp.get()); stack.push_back(sp.get());
to_delete.emplace_back(std::move(sp));
} else { } else {
sp.reset(); sp.reset();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment