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

newreadlinesobject() in xreadlines().
This commit is contained in:
Guido van Rossum 2001-03-23 18:30:19 +00:00
parent 559f6680c2
commit 9dee48f6e7
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}