فهرست منبع

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)