mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix memory leak in io.StringIO
This commit is contained in:
parent
39aba4f563
commit
c1b0bfdb04
1 changed files with 1 additions and 0 deletions
|
@ -455,6 +455,7 @@ _PyIncrementalNewlineDecoder_decode(PyObject *_self,
|
|||
}
|
||||
Py_DECREF(output);
|
||||
output = PyUnicode_FromKindAndData(kind, translated, out);
|
||||
PyMem_Free(translated);
|
||||
if (!output)
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue