summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-08 23:04:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-09-08 23:04:22 (GMT)
commit7f6d0834f987f1f1599347131de4f5e9e8cb4864 (patch)
tree7987633861e1dd0ad6787a6af8186a5b2929157b /Modules
parent5cfa8044ff9fd26dc4915fc2ce5b2d005eea3261 (diff)
downloadcpython-7f6d0834f987f1f1599347131de4f5e9e8cb4864.zip
cpython-7f6d0834f987f1f1599347131de4f5e9e8cb4864.tar.gz
cpython-7f6d0834f987f1f1599347131de4f5e9e8cb4864.tar.bz2
#6865 fix ref counting in initialization of pwd module
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pwdmodule.c1
1 files changed, 1 insertions, 0 deletions
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;
}