diff --git a/include/pybind11/detail/smart_holder_poc.h b/include/pybind11/detail/smart_holder_poc.h index 548b02f4b..76fe92e5c 100644 --- a/include/pybind11/detail/smart_holder_poc.h +++ b/include/pybind11/detail/smart_holder_poc.h @@ -288,7 +288,6 @@ struct smart_holder { if (hld.vptr_is_using_builtin_delete) { hld.vptr.reset(unq_ptr.get(), make_guarded_builtin_delete(true)); } else { - make_guarded_custom_deleter(false); hld.vptr.reset(unq_ptr.get(), make_guarded_custom_deleter(true)); } unq_ptr.release();