mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix a leak of a reference on None.
This commit is contained in:
parent
574a25127a
commit
7d6cc5b303
1 changed files with 1 additions and 3 deletions
|
@ -2284,9 +2284,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
|
if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
|
||||||
|
|
||||||
PyCursesCheckERR(typeahead( fd ), "typeahead");
|
return PyCursesCheckERR(typeahead( fd ), "typeahead");
|
||||||
Py_INCREF(Py_None);
|
|
||||||
return Py_None;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue