Patch in bug report #477700: Fix memory leaks in gdbm & curses.

This commit is contained in:
Martin v. Löwis 2001-11-11 14:24:05 +00:00
parent 20efa68be4
commit 00ff10cae4
2 changed files with 5 additions and 3 deletions

View file

@ -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);