[Python-checkins] cpython: Issue #19513: Disable overallocation of the PyUnicodeWriter before the last
victor.stinner
python-checkins at python.org
Tue Nov 19 12:13:12 CET 2013
http://hg.python.org/cpython/rev/27461e6a7763
changeset: 87262:27461e6a7763
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Nov 19 12:09:00 2013 +0100
summary:
Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write
files:
Objects/listobject.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Objects/listobject.c b/Objects/listobject.c
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -387,6 +387,7 @@
Py_DECREF(s);
}
+ writer.overallocate = 0;
if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0)
goto error;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list