mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #15926: Fix crash after multiple reinitializations of the interpreter.
This commit is contained in:
parent
7ae251a025
commit
9d20e0edd9
2 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,8 @@ What's New in Python 3.3.1
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #15926: Fix crash after multiple reinitializations of the interpreter.
|
||||||
|
|
||||||
- Issue #15895: Fix FILE pointer leak in one error branch of
|
- Issue #15895: Fix FILE pointer leak in one error branch of
|
||||||
PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file, closeit
|
PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file, closeit
|
||||||
is false an and set_main_loader() fails.
|
is false an and set_main_loader() fails.
|
||||||
|
|
|
@ -11852,7 +11852,6 @@ INITFUNC(void)
|
||||||
|
|
||||||
/* initialize TerminalSize_info */
|
/* initialize TerminalSize_info */
|
||||||
PyStructSequence_InitType(&TerminalSizeType, &TerminalSize_desc);
|
PyStructSequence_InitType(&TerminalSizeType, &TerminalSize_desc);
|
||||||
Py_INCREF(&TerminalSizeType);
|
|
||||||
}
|
}
|
||||||
#if defined(HAVE_WAITID) && !defined(__APPLE__)
|
#if defined(HAVE_WAITID) && !defined(__APPLE__)
|
||||||
Py_INCREF((PyObject*) &WaitidResultType);
|
Py_INCREF((PyObject*) &WaitidResultType);
|
||||||
|
@ -11915,6 +11914,7 @@ INITFUNC(void)
|
||||||
|
|
||||||
#endif /* __APPLE__ */
|
#endif /* __APPLE__ */
|
||||||
|
|
||||||
|
Py_INCREF(&TerminalSizeType);
|
||||||
PyModule_AddObject(m, "terminal_size", (PyObject*) &TerminalSizeType);
|
PyModule_AddObject(m, "terminal_size", (PyObject*) &TerminalSizeType);
|
||||||
|
|
||||||
billion = PyLong_FromLong(1000000000);
|
billion = PyLong_FromLong(1000000000);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue