Commit bc0be707 authored by Guido van Rossum's avatar Guido van Rossum

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

newreadlinesobject() in xreadlines().
parent dac7b49e
......@@ -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