mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write
This commit is contained in:
parent
58cf607d13
commit
4d3f109ad3
1 changed files with 1 additions and 0 deletions
|
|
@ -387,6 +387,7 @@ list_repr(PyListObject *v)
|
||||||
Py_DECREF(s);
|
Py_DECREF(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
writer.overallocate = 0;
|
||||||
if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0)
|
if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue