Kaydet (Commit) 491bbedc authored tarafından lekma's avatar lekma Kaydeden (comit) INADA Naoki

bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)

üst fc6aa28b
......@@ -1744,8 +1744,10 @@ set_symmetric_difference(PySetObject *so, PyObject *other)
if (otherset == NULL)
return NULL;
rv = set_symmetric_difference_update(otherset, (PyObject *)so);
if (rv == NULL)
if (rv == NULL) {
Py_DECREF(otherset);
return NULL;
}
Py_DECREF(rv);
return (PyObject *)otherset;
}
......
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