diff options
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Modules/pwdmodule.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -1303,6 +1303,9 @@ C-API Extension Modules ----------------- +- Issue #6865: Fix reference counting issue in the initialization of the pwd + module. + - Issue #6848: Fix curses module build failure on OS X 10.6. - Fix a segfault in expat when given a specially crafted input lead to the diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index a271c5a..2865dc6 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -194,6 +194,7 @@ initpwd(void) Py_INCREF((PyObject *) &StructPwdType); PyModule_AddObject(m, "struct_passwd", (PyObject *) &StructPwdType); /* And for b/w compatibility (this was defined by mistake): */ + Py_INCREF((PyObject *) &StructPwdType); PyModule_AddObject(m, "struct_pwent", (PyObject *) &StructPwdType); initialized = 1; } |