Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd296ff

Browse files
committed
Issue #15926: Fix crash after multiple reinitializations of the interpreter.
1 parent 1aca31e commit fd296ff

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ What's New in Python 3.3.0 Release Candidate 3?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #15926: Fix crash after multiple reinitializations of the interpreter.
14+
1315
- Issue #15895: Fix FILE pointer leak in one error branch of
1416
PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file, closeit
1517
is false an and set_main_loader() fails.

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11852,7 +11852,6 @@ INITFUNC(void)
1185211852

1185311853
/* initialize TerminalSize_info */
1185411854
PyStructSequence_InitType(&TerminalSizeType, &TerminalSize_desc);
11855-
Py_INCREF(&TerminalSizeType);
1185611855
}
1185711856
#if defined(HAVE_WAITID) && !defined(__APPLE__)
1185811857
Py_INCREF((PyObject*) &WaitidResultType);
@@ -11915,6 +11914,7 @@ INITFUNC(void)
1191511914

1191611915
#endif /* __APPLE__ */
1191711916

11917+
Py_INCREF(&TerminalSizeType);
1191811918
PyModule_AddObject(m, "terminal_size", (PyObject*) &TerminalSizeType);
1191911919

1192011920
billion = PyLong_FromLong(1000000000);

0 commit comments

Comments
 (0)