瀏覽代碼

HPCC-13986 Valgrind reporting memory leaks re statistics

This would leak a scope entry every time a statistic scope is entered/exited,
potentially accumulating to a significant leak over time for thor. It is less
significant on Roxie since it is only called when running queries via workunit
queue.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 年之前
父節點
當前提交
f4a9e9af63
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      system/jlib/jstats.cpp

+ 1 - 0
system/jlib/jstats.cpp

@@ -1316,6 +1316,7 @@ public:
     }
     virtual void endScope()
     {
+        scopes.tos().Release();
         scopes.pop();
     }
     virtual void addStatistic(StatisticKind kind, unsigned __int64 value)