Fixed memory leaks (experimental)
authorkhizmax <khizmax@gmail.com>
Tue, 29 Nov 2016 14:57:12 +0000 (17:57 +0300)
committerkhizmax <khizmax@gmail.com>
Tue, 29 Nov 2016 14:57:12 +0000 (17:57 +0300)
cds/algo/flat_combining/kernel.h

index f8dd398..c0a3a7d 100644 (file)
@@ -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<publication_record_type *>( pRec ));
+                    free_publication_record( static_cast<publication_record_type *>( pRec ));
                 }
             }