From 605038eef526b82e4261033a122d5951167eb6f9 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 7 Mar 2017 10:45:42 +0300 Subject: [PATCH] Fixed UBsan warning "call to function through pointer to incorrect function type" --- cds/intrusive/impl/ellen_bintree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cds/intrusive/impl/ellen_bintree.h b/cds/intrusive/impl/ellen_bintree.h index 06ed7fd0..f935c13f 100644 --- a/cds/intrusive/impl/ellen_bintree.h +++ b/cds/intrusive/impl/ellen_bintree.h @@ -261,9 +261,9 @@ namespace cds { namespace intrusive { } 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 ); } }; -- 2.34.1