summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-11-11 14:24:05 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-11-11 14:24:05 (GMT)
commit00ff10cae426a529ea9aa473e0ba9ab905cf7c81 (patch)
treef0f623e4347d8e821c86bd5e57dd275240aa4954 /Modules/_cursesmodule.c
parent20efa68be43b18413cc08089211b1351687084af (diff)
downloadcpython-00ff10cae426a529ea9aa473e0ba9ab905cf7c81.zip
cpython-00ff10cae426a529ea9aa473e0ba9ab905cf7c81.tar.gz
cpython-00ff10cae426a529ea9aa473e0ba9ab905cf7c81.tar.bz2
Patch in bug report #477700: Fix memory leaks in gdbm & curses.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c1
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);