Преглед на файлове

HPCC-16852 Limited prefix joins may leak roxie rows

This seems to have already been fixed in the Thor code this was originally
adapted from.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman преди 8 години
родител
ревизия
fdaf671686
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      common/thorhelper/roxiehelper.cpp

+ 1 - 3
common/thorhelper/roxiehelper.cpp

@@ -81,11 +81,9 @@ void CRHRollingCacheElem::set(const void *_row)
 //CRHRollingCache copied/modified from THOR CRollingCache
 CRHRollingCache::~CRHRollingCache()
 {
-    loop 
+    while (cache.ordinality())
     {  
         CRHRollingCacheElem *e = cache.dequeue();  
-        if (!e)  
-            break;  
         delete e;  
     }  
 }