فهرست منبع

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;  
     }  
 }