We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f892cce commit 53e29f4Copy full SHA for 53e29f4
include/pybind11/pybind11.h
@@ -2629,7 +2629,6 @@ inline void
2629
error_already_set::m_fetched_error_deleter(detail::error_fetch_and_normalize *raw_ptr) {
2630
gil_scoped_acquire gil;
2631
error_scope scope;
2632
- raw_ptr->release_py_object_references();
2633
delete raw_ptr;
2634
}
2635
include/pybind11/pytypes.h
@@ -541,12 +541,6 @@ struct error_fetch_and_normalize {
541
return (PyErr_GivenExceptionMatches(m_type.ptr(), exc.ptr()) != 0);
542
543
544
- void release_py_object_references() {
545
- m_type.release().dec_ref();
546
- m_value.release().dec_ref();
547
- m_trace.release().dec_ref();
548
- }
549
-
550
// Not protecting these for simplicity.
551
object m_type, m_value, m_trace;
552
0 commit comments