diff --git a/Objects/object.c b/Objects/object.c index 69d5f83a693..1b7f609206a 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -820,7 +820,7 @@ PyObject_GetAttrString(PyObject *v, const char *name) if (w == NULL) return NULL; res = PyObject_GetAttr(v, w); - Py_XDECREF(w); + Py_DECREF(w); return res; }