From: khizmax Date: Tue, 7 Mar 2017 07:45:42 +0000 (+0300) Subject: Fixed UBsan warning "call to function through pointer to incorrect function type" X-Git-Tag: v2.3.0~133 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=605038eef526b82e4261033a122d5951167eb6f9 Fixed UBsan warning "call to function through pointer to incorrect function type" --- 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 ); } };