mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
Merged revisions 74727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74727 | benjamin.peterson | 2009-09-08 18:04:22 -0500 (Tue, 08 Sep 2009) | 1 line #6865 fix ref counting in initialization of pwd module ........
This commit is contained in:
parent
8a3e345913
commit
5cb038678f
2 changed files with 4 additions and 0 deletions
|
@ -778,6 +778,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #6865: Fix reference counting issue in the initialization of the pwd
|
||||||
|
module.
|
||||||
|
|
||||||
- Issue #3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an
|
- Issue #3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an
|
||||||
exception.
|
exception.
|
||||||
|
|
||||||
|
|
|
@ -194,6 +194,7 @@ initpwd(void)
|
||||||
Py_INCREF((PyObject *) &StructPwdType);
|
Py_INCREF((PyObject *) &StructPwdType);
|
||||||
PyModule_AddObject(m, "struct_passwd", (PyObject *) &StructPwdType);
|
PyModule_AddObject(m, "struct_passwd", (PyObject *) &StructPwdType);
|
||||||
/* And for b/w compatibility (this was defined by mistake): */
|
/* And for b/w compatibility (this was defined by mistake): */
|
||||||
|
Py_INCREF((PyObject *) &StructPwdType);
|
||||||
PyModule_AddObject(m, "struct_pwent", (PyObject *) &StructPwdType);
|
PyModule_AddObject(m, "struct_pwent", (PyObject *) &StructPwdType);
|
||||||
initialized = 1;
|
initialized = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue