Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025

Conversation

miss-islington
Copy link
Contributor

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

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
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants