From 04f65ff8c157c8d417ed6c3e099181d6216b0d96 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Thu, 3 Dec 2015 11:35:08 +0100 Subject: [PATCH] Fixed a memleak in ClusterTraverser --- arangod/Cluster/ClusterTraverser.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arangod/Cluster/ClusterTraverser.h b/arangod/Cluster/ClusterTraverser.h index 9d6a74ab63..4abc366132 100644 --- a/arangod/Cluster/ClusterTraverser.h +++ b/arangod/Cluster/ClusterTraverser.h @@ -60,6 +60,9 @@ namespace triagens { } ~ClusterTraverser () { + for (auto& it : _vertices) { + delete it.second; + } } void setStartVertex (VertexId& v) override;