Commit 69b4a17f authored by Gao, Xiang's avatar Gao, Xiang Committed by Serhiy Storchaka

bpo-36126: Fix ref count leakage in structseq_repr. (GH-12035)

parent a5883433
......@@ -266,6 +266,7 @@ structseq_repr(PyStructSequence *obj)
val = PyTuple_GetItem(tup, i);
if (cname == NULL || val == NULL) {
Py_DECREF(tup);
return NULL;
}
repr = PyObject_Repr(val);
......
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