From aadb8b01b29561f27bb392a24f18809ea0e4e03d Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Mon, 4 Mar 2013 17:50:08 -0800 Subject: [PATCH] cyclegraph: memory "leak", fixup An insignificant memory leak. --- cyclegraph.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cyclegraph.cc b/cyclegraph.cc index 240d24ff..e96549ff 100644 --- a/cyclegraph.cc +++ b/cyclegraph.cc @@ -8,7 +8,7 @@ /** Initializes a CycleGraph object. */ CycleGraph::CycleGraph() : discovered(new HashTable(16)), - queue(new std::vector< const CycleNode *, ModelAlloc >()), + queue(new std::vector< const CycleNode *, ModelAlloc >()), hasCycles(false), oldCycles(false) { @@ -17,6 +17,7 @@ CycleGraph::CycleGraph() : /** CycleGraph destructor */ CycleGraph::~CycleGraph() { + delete queue; delete discovered; } -- 2.34.1