diff options
| author | Victor Stinner <vstinner@python.org> | 2021-09-21 23:04:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-21 23:04:34 +0200 |
| commit | 79a31480992c3fa5890fc7a6c5d9af6d337d5844 (patch) | |
| tree | a3ef89bb0340669e86c52f5b924cfb0e71845956 /Objects/object.c | |
| parent | f604cf1c377a7648e0686044e6e49900bfc9feef (diff) | |
| download | cpython-git-79a31480992c3fa5890fc7a6c5d9af6d337d5844.tar.gz | |
bpo-45061: Detect refcount bug on empty tuple singleton (GH-28503)
Detect refcount bugs in C extensions when the empty tuple singleton
is destroyed by mistake.
Add the _Py_FatalRefcountErrorFunc() function.
Diffstat (limited to 'Objects/object.c')
| -rw-r--r-- | Objects/object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c index 026262b544..aa84815e56 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1563,8 +1563,7 @@ none_repr(PyObject *op) static void _Py_NO_RETURN none_dealloc(PyObject* Py_UNUSED(ignore)) { - Py_FatalError("deallocating None likely caused by a refcount bug " - "in a C extension"); + _Py_FatalRefcountError("deallocating None"); } static PyObject * |
