From 3cb2afd454d74634b51a9cd25f628c9d748726b2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 6 Dec 2014 10:23:25 +0100 Subject: [PATCH] Fix minor memory leak in the config parser --- lib/config/expression.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/config/expression.hpp b/lib/config/expression.hpp index d89a5f3e5..17ad784ad 100644 --- a/lib/config/expression.hpp +++ b/lib/config/expression.hpp @@ -646,6 +646,12 @@ public: : DebuggableExpression(debugInfo), m_Indexer(indexer) { } + ~IndexerExpression(void) + { + BOOST_FOREACH(Expression *expr, m_Indexer) + delete expr; + } + protected: virtual Value DoEvaluate(VMFrame& frame, DebugHint *dhint) const; -- 2.40.0