changeset: 79118:6708224f8bee user: Antoine Pitrou date: Wed Sep 12 18:01:36 2012 +0200 files: Misc/NEWS Modules/posixmodule.c description: Issue #15926: Fix crash after multiple reinitializations of the interpreter. diff -r c1e9a1fc6931 -r 6708224f8bee Misc/NEWS --- a/Misc/NEWS Sat Sep 22 09:03:56 2012 +0200 +++ b/Misc/NEWS Wed Sep 12 18:01:36 2012 +0200 @@ -10,6 +10,8 @@ Core and Builtins ----------------- +- Issue #15926: Fix crash after multiple reinitializations of the interpreter. + - Issue #15895: Fix FILE pointer leak in one error branch of PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file, closeit is false an and set_main_loader() fails. diff -r c1e9a1fc6931 -r 6708224f8bee Modules/posixmodule.c --- a/Modules/posixmodule.c Sat Sep 22 09:03:56 2012 +0200 +++ b/Modules/posixmodule.c Wed Sep 12 18:01:36 2012 +0200 @@ -11852,7 +11852,6 @@ /* initialize TerminalSize_info */ PyStructSequence_InitType(&TerminalSizeType, &TerminalSize_desc); - Py_INCREF(&TerminalSizeType); } #if defined(HAVE_WAITID) && !defined(__APPLE__) Py_INCREF((PyObject*) &WaitidResultType); @@ -11915,6 +11914,7 @@ #endif /* __APPLE__ */ + Py_INCREF(&TerminalSizeType); PyModule_AddObject(m, "terminal_size", (PyObject*) &TerminalSizeType); billion = PyLong_FromLong(1000000000);

AltStyle によって変換されたページ (->オリジナル) /