commit | 7d6cc5b30342db3718ef4003dffa0e433fc60151 | [log] [tgz] |
---|---|---|
author | Michael W. Hudson <mwh@python.net> | Wed Aug 04 14:33:28 2004 +0000 |
committer | Michael W. Hudson <mwh@python.net> | Wed Aug 04 14:33:28 2004 +0000 |
tree | 03da22e82e56c632653afc300eaa5c62e176cb7a | |
parent | 574a25127a5e0d21483f3b7432798329b49fe112 [diff] |
Fix a leak of a reference on None.
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 @@ 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 *