fix a bugs in guarded_ptr and exempt_ptr
[libcds.git] / cds / gc / impl / dhp_decl.h
index 6da2073a658364a0661988b6929052101d157a63..e07b196c3c62b3121dee47849a2af76cb25e7951 100644 (file)
@@ -529,8 +529,7 @@ namespace cds { namespace gc {
             */
             void release() CDS_NOEXCEPT
             {
-                if ( m_guard.is_initialized() )
-                    m_guard.clear();
+                free_guard();
             }
 
             //@cond