diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c index 4cdef8a7289..db9e243a3ec 100644 --- a/Modules/xreadlinesmodule.c +++ b/Modules/xreadlinesmodule.c @@ -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; }