[Python-checkins] r74727 - in python/trunk: Misc/NEWS Modules/pwdmodule.c
benjamin.peterson
python-checkins at python.org
Wed Sep 9 01:04:22 CEST 2009
Author: benjamin.peterson
Date: Wed Sep 9 01:04:22 2009
New Revision: 74727
Log:
#6865 fix ref counting in initialization of pwd module
Modified:
python/trunk/Misc/NEWS
python/trunk/Modules/pwdmodule.c
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Wed Sep 9 01:04:22 2009
@@ -1303,6 +1303,9 @@
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
Modified: python/trunk/Modules/pwdmodule.c
==============================================================================
--- python/trunk/Modules/pwdmodule.c (original)
+++ python/trunk/Modules/pwdmodule.c Wed Sep 9 01:04:22 2009
@@ -194,6 +194,7 @@
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;
}
More information about the Python-checkins
mailing list