summaryrefslogtreecommitdiff
path: root/Objects/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 446c974f8e..026262b544 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1560,14 +1560,11 @@ none_repr(PyObject *op)
return PyUnicode_FromString("None");
}
-/* ARGUSED */
static void _Py_NO_RETURN
-none_dealloc(PyObject* ignore)
+none_dealloc(PyObject* Py_UNUSED(ignore))
{
- /* This should never get called, but we also don't want to SEGV if
- * we accidentally decref None out of existence.
- */
- Py_FatalError("deallocating None");
+ Py_FatalError("deallocating None likely caused by a refcount bug "
+ "in a C extension");
}
static PyObject *