diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-12 21:34:28 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-12 21:34:28 (GMT) |
commit | c1b0bfdb04dfd9d5c69a2a514f85213ae9b81f1b (patch) | |
tree | 0ecf17985ff69d11b050254f25fb0fa2dd3145b1 /Modules/_io | |
parent | 39aba4f5636f37d93d9fca44968f2846385e27d2 (diff) | |
download | cpython-c1b0bfdb04dfd9d5c69a2a514f85213ae9b81f1b.zip cpython-c1b0bfdb04dfd9d5c69a2a514f85213ae9b81f1b.tar.gz cpython-c1b0bfdb04dfd9d5c69a2a514f85213ae9b81f1b.tar.bz2 |
Fix memory leak in io.StringIO
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/textio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index e9abaf4..eef99da 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -455,6 +455,7 @@ _PyIncrementalNewlineDecoder_decode(PyObject *_self, } Py_DECREF(output); output = PyUnicode_FromKindAndData(kind, translated, out); + PyMem_Free(translated); if (!output) goto error; } |