mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-101747: Fix refleak in new OrderedDict
repr (GH-101748)
This commit is contained in:
parent
5b946d3719
commit
34c50ceb1e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue