Kaydet (Commit) 9dee48f6 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix a memory leak -- there's no need to INCREF() the result of

newreadlinesobject() in xreadlines().
üst 559f6680
......@@ -50,7 +50,6 @@ xreadlines(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "O:xreadlines", &file))
return NULL;
ret = newreadlinesobject(file);
Py_XINCREF(ret);
return (PyObject*)ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment