mirror of https://github.com/python/cpython
gh-101747: Fix refleak in new `OrderedDict` repr (GH-101748)
This commit is contained in:
parent
5b946d3719
commit
34c50ceb1e
|
@ -1385,6 +1385,7 @@ odict_repr(PyODictObject *self)
|
|||
result = PyUnicode_FromFormat("%s(%R)",
|
||||
_PyType_Name(Py_TYPE(self)),
|
||||
dcopy);
|
||||
Py_DECREF(dcopy);
|
||||
|
||||
Done:
|
||||
Py_ReprLeave((PyObject *)self);
|
||||
|
|
Loading…
Reference in New Issue