Kaydet (Commit) e0aa8037 authored tarafından Petri Lehtinen's avatar Petri Lehtinen

Fix the return value of set_discard (issue #10519)

üst 5acc27eb
......@@ -1942,9 +1942,10 @@ set_discard(PySetObject *so, PyObject *key)
tmpkey = make_new_set(&PyFrozenSet_Type, key);
if (tmpkey == NULL)
return NULL;
result = set_discard_key(so, tmpkey);
rv = set_discard_key(so, tmpkey);
Py_DECREF(tmpkey);
return result;
if (rv == -1)
return NULL;
}
Py_RETURN_NONE;
}
......
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