SIGN IN SIGN UP

[3.14] gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962) (#134305)

gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962)

Call Py_XDECREF rather than PyObject_GC_Del in failed __new__

This will call tp_dealloc and clear all members.
(cherry picked from commit e575190abbd9409adad3e7fd95424f827236bed9)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
M
Miss Islington (bot) committed
07a2033fcfabcbfb28450f3106b396b474561e57
Parent: 4effd06
Committed by GitHub <noreply@github.com> on 5/20/2025, 2:58:51 AM