Commit 403f0f70 authored by Raymond Hettinger's avatar Raymond Hettinger

Reposition the decref (spotted by eagle-eye norwitz).

parent 503e18e7
......@@ -1372,14 +1372,15 @@ set_isdisjoint(PySetObject *so, PyObject *other)
setentry entry;
long hash = PyObject_Hash(key);
Py_DECREF(key);
if (hash == -1) {
Py_DECREF(key);
Py_DECREF(it);
return NULL;
}
entry.hash = hash;
entry.key = key;
rv = set_contains_entry(so, &entry);
Py_DECREF(key);
if (rv == -1) {
Py_DECREF(it);
return NULL;
......
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