Commits

Anonymous committed f1a49ee

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

  • Participants
  • Parent commits 4d6ee7f
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Modules/xreadlinesmodule.c

 	if (!PyArg_ParseTuple(args, "O:xreadlines", &file))
 		return NULL;
 	ret = newreadlinesobject(file);
-	Py_XINCREF(ret);
 	return (PyObject*)ret;
 }