fix a bugs in guarded_ptr and exempt_ptr
[libcds.git] / cds / gc / impl / hp_decl.h
index bffc52687ad8139178050d7d72aee4dc9b13dbff..cd9b1c2b406352028432e1d3b179e66f936873bf 100644 (file)
@@ -533,8 +533,7 @@ namespace cds { namespace gc {
             */
             void release() CDS_NOEXCEPT
             {
-                if ( m_pGuard )
-                    m_pGuard->clear();
+                free_guard();
             }
 
             //@cond