mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Patch in bug report #477700: Fix memory leaks in gdbm & curses.
This commit is contained in:
parent
20efa68be4
commit
00ff10cae4
2 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue