aboutsummaryrefslogtreecommitdiff
path: root/cells-impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cells-impl.hpp')
-rw-r--r--cells-impl.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cells-impl.hpp b/cells-impl.hpp
index 1ee3eac..67c28f5 100644
--- a/cells-impl.hpp
+++ b/cells-impl.hpp
@@ -248,8 +248,10 @@ namespace cells {
independent_nodes.push_front(other);
}
}
+ delete node;
}
if (left != 0) {
+ // FIXME: delete remaining dag_nodes.
throw std::logic_error("Cell cycle detected");
}