mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#6865 fix ref counting in initialization of pwd module
This commit is contained in:
parent
5cfa8044ff
commit
7f6d0834f9
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue