mirror of https://github.com/python/cpython
Fix memory leak in io.StringIO
This commit is contained in:
parent
39aba4f563
commit
c1b0bfdb04
|
@ -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…
Reference in New Issue