diff --git a/3party/kdtree++/allocator.hpp b/3party/kdtree++/allocator.hpp index ae7a5e934a..a7f3851b2f 100644 --- a/3party/kdtree++/allocator.hpp +++ b/3party/kdtree++/allocator.hpp @@ -74,7 +74,7 @@ namespace KDTree void _M_destroy_node(_Node_* __p) { - _M_node_allocator.destroy(__p); + __p->~_Node_(); } };