diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-09-08 23:04:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-09-08 23:04:22 (GMT) |
commit | 7f6d0834f987f1f1599347131de4f5e9e8cb4864 (patch) | |
tree | 7987633861e1dd0ad6787a6af8186a5b2929157b /Modules | |
parent | 5cfa8044ff9fd26dc4915fc2ce5b2d005eea3261 (diff) | |
download | cpython-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.c | 1 |
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; } |