Fixed UBsan warning "call to function through pointer to incorrect function type"
authorkhizmax <khizmax@gmail.com>
Tue, 7 Mar 2017 07:45:42 +0000 (10:45 +0300)
committerkhizmax <khizmax@gmail.com>
Tue, 7 Mar 2017 07:45:42 +0000 (10:45 +0300)
cds/intrusive/impl/ellen_bintree.h

index 06ed7fd..f935c13 100644 (file)
@@ -261,9 +261,9 @@ namespace cds { namespace intrusive {
         }
 
         struct internal_node_deleter {
         }
 
         struct internal_node_deleter {
-            void operator()( internal_node * p) const
+            void operator()( internal_node* p) const
             {
             {
-                free_internal_node( p );
+                cxx_node_allocator().Delete( p );
             }
         };
 
             }
         };