From 2dfd67cfd8d7f3589877570d1810ad6865d31252 Mon Sep 17 00:00:00 2001 From: khizmax Date: Wed, 16 Sep 2015 00:09:38 +0300 Subject: [PATCH] Fixed a bug in update() function --- cds/container/lazy_kvlist_nogc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cds/container/lazy_kvlist_nogc.h b/cds/container/lazy_kvlist_nogc.h index 4399ee5f..1cf0729a 100644 --- a/cds/container/lazy_kvlist_nogc.h +++ b/cds/container/lazy_kvlist_nogc.h @@ -546,10 +546,10 @@ namespace cds { namespace container { std::pair ret = base_class::update_at( &refHead, *pNode, [&pItemFound](bool, node_type& item, node_type&){ pItemFound = &item; }, bAllowInsert ); - if ( ret.first && ret.second ) + + if ( ret.second ) pNode.release(); - assert( pItemFound != nullptr ); return std::make_pair( pItemFound, ret.second ); } -- 2.34.1