mirror of https://github.com/python/cpython.git
Fix a memory leak -- there's no need to INCREF() the result of
newreadlinesobject() in xreadlines().
This commit is contained in:
parent
559f6680c2
commit
9dee48f6e7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue