]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 20 May 2025 02:58:51 +0000 (04:58 +0200)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 02:58:51 +0000 (02:58 +0000)
commit07a2033fcfabcbfb28450f3106b396b474561e57
tree8017f32b66e5af6c719e46ec443bc8d0a77f82ed
parent4effd060fcb309560c0fcbb2201954752cacf72e
[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>
Modules/_zstd/compressor.c
Modules/_zstd/decompressor.c
Modules/_zstd/zstddict.c