diff options
Diffstat (limited to 'Modules/_cursesmodule.c')
| -rw-r--r-- | Modules/_cursesmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index bd544ba..e6f5ef1 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2544,6 +2544,7 @@ init_curses(void) /* Add a CObject for the C API */ c_api_object = PyCObject_FromVoidPtr((void *)PyCurses_API, NULL); PyDict_SetItemString(d, "_C_API", c_api_object); + Py_DECREF(c_api_object); /* For exception curses.error */ PyCursesError = PyErr_NewException("_curses.error", NULL, NULL); |
