From 9ee433b5f0d9e5243727cecbb398eb17b9511d66 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 9 Dec 2012 13:05:11 +0100 Subject: Fix a memory leak. --- cells-impl.hpp | 2 ++ 1 file changed, 2 insertions(+) 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"); } -- cgit v1.2.3