aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-12-09 13:05:11 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-12-09 13:05:11 +0100
commit9ee433b5f0d9e5243727cecbb398eb17b9511d66 (patch)
tree4c863a6eb1e6b02ec697678bb9c7f823435f69cf
parent8735944c1597d317716357eb2561222161b875d4 (diff)
Fix a memory leak.HEADmaster
-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");
}