瀏覽代碼

HPCC-7981 Memory leak in memoryUsageReporter

Every time memoryReporter (which also reports disk) is started/stopped,
there is a leak of around 56 bytes (on a default debug install).

Becuase Thor calls startMemoryReporter at the start of each subgraph and
stopMemoryReporter at the end, the leak does accumulate.

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

+ 2 - 0
system/jlib/jdebug.cpp

@@ -1707,6 +1707,8 @@ public:
     {
         free(partition);
         free(kbuf);
+        free(newblkio);
+        free(oldblkio);
     }
 
     bool getLine(StringBuffer &out)