Commit 59af08f5 authored by Victor Stinner's avatar Victor Stinner

Micro-optimize PyObject_GetAttrString()

w cannot be NULL so use Py_DECREF() instead of Py_XDECREF().
parent d5d17eb6
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment