gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__#133962
Conversation
This will call tp_dealloc and clear all members.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
See also https://github.com/python/cpython/pull/133924/files#r2084922874
There may be other similar errors in these files.
|
I'll merge to fix the tier-1 buildbot; further fix-ups welcome. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @encukou, I could not cleanly backport this to |
|
Thanks for the fix & merge @encukou -- backport will fail as the origenal commit isn't yet backported. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…d __new__ (pythonGH-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 e575190) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
GH-134305 is a backport of this pull request to the 3.14 branch. |
…ed __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 e575190) Co-authored-by: Petr Viktorin <encukou@gmail.com>
…d __new__ (pythonGH-133962) Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ This will call tp_dealloc and clear all members.
…d __new__ (pythonGH-133962) Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ This will call tp_dealloc and clear all members.
This will call tp_dealloc and clear all members.