summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-04 14:33:28 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-04 14:33:28 (GMT)
commit7d6cc5b30342db3718ef4003dffa0e433fc60151 (patch)
tree03da22e82e56c632653afc300eaa5c62e176cb7a /Modules
parent574a25127a5e0d21483f3b7432798329b49fe112 (diff)
downloadcpython-7d6cc5b30342db3718ef4003dffa0e433fc60151.zip
cpython-7d6cc5b30342db3718ef4003dffa0e433fc60151.tar.gz
cpython-7d6cc5b30342db3718ef4003dffa0e433fc60151.tar.bz2
Fix a leak of a reference on None.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 51f4c38..7847d39 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2284,9 +2284,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
- PyCursesCheckERR(typeahead( fd ), "typeahead");
- Py_INCREF(Py_None);
- return Py_None;
+ return PyCursesCheckERR(typeahead( fd ), "typeahead");
}
static PyObject *