From 9dee48f6e7f080626d06ea8847834a7506935c97 Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Fri, 23 Mar 2001 18:30:19 +0000
Subject: Fix a memory leak -- there's no need to INCREF() the result of
 newreadlinesobject() in xreadlines().

---
 Modules/xreadlinesmodule.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c
index 4cdef8a..db9e243 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;
 }
 
-- 
cgit v0.12

