]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962)
authorPetr Viktorin <encukou@gmail.com>
Tue, 13 May 2025 09:11:52 +0000 (11:11 +0200)
committerGitHub <noreply@github.com>
Tue, 13 May 2025 09:11:52 +0000 (11:11 +0200)
commite575190abbd9409adad3e7fd95424f827236bed9
tree4dc67e2b1cc48da6ddb88f10a0500f7feccf6c78
parentc09cec5d69f2ef6ab5e64c7e0579fbd9dcb2ca45
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.
Modules/_zstd/compressor.c
Modules/_zstd/decompressor.c
Modules/_zstd/zstddict.c