From e32b8206c8fff235765277ee3f7c42517c4b52a5 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 29 Nov 2016 17:57:12 +0300 Subject: [PATCH] Fixed memory leaks (experimental) --- cds/algo/flat_combining/kernel.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cds/algo/flat_combining/kernel.h b/cds/algo/flat_combining/kernel.h index f8dd398c..c0a3a7dc 100644 --- a/cds/algo/flat_combining/kernel.h +++ b/cds/algo/flat_combining/kernel.h @@ -297,8 +297,7 @@ namespace cds { namespace algo { publication_record * pRec = p; p = p->pNext.load( memory_model::memory_order_relaxed ); - if ( pRec->nState.load( memory_model::memory_order_acquire ) == removed ) - free_publication_record( static_cast( pRec )); + free_publication_record( static_cast( pRec )); } } -- 2.34.1