diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-09-12 16:01:36 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-09-12 16:01:36 (GMT) |
commit | 9d20e0edd966431fa63e85ff7c04087de0c9ed7c (patch) | |
tree | 62a017a00e8ed1f50462aa02b48a2d6cd7759d51 /Modules | |
parent | 7ae251a0256686a0583a371a0c6421b6fd8366bf (diff) | |
download | cpython-9d20e0edd966431fa63e85ff7c04087de0c9ed7c.zip cpython-9d20e0edd966431fa63e85ff7c04087de0c9ed7c.tar.gz cpython-9d20e0edd966431fa63e85ff7c04087de0c9ed7c.tar.bz2 |
Issue #15926: Fix crash after multiple reinitializations of the interpreter.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 1f2b0cc..54f6cd2 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -11852,7 +11852,6 @@ INITFUNC(void) /* 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 @@ INITFUNC(void) #endif /* __APPLE__ */ + Py_INCREF(&TerminalSizeType); PyModule_AddObject(m, "terminal_size", (PyObject*) &TerminalSizeType); billion = PyLong_FromLong(1000000000); |