Skip to content

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

Merged
AA-Turner merged 1 commit into
python:3.14from
miss-islington:backport-e575190-3.14
May 20, 2025
Merged

AA-Turner merged 1 commit into
python:3.14from
miss-islington:backport-e575190-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented May 20, 2025 •

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit e575190)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
@AA-Turner
AA-Turner merged commit 07a2033 into python:3.14 May 20, 2025
@miss-islington
miss-islington deleted the backport-e575190-3.14 branch January 2, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants