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

Skip to content

Commit eb3be66

Browse files
committed
Issue #27736: Prevent segfault after interpreter re-initialization due
to ref count problem introduced in code for Issue #27038 in 3.6.0a3. Patch by Xiang Zhang.
1 parent 652bad4 commit eb3be66

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ Core and Builtins
5757
Library
5858
-------
5959

60+
- Issue #27736: Prevent segfault after interpreter re-initialization due
61+
to ref count problem introduced in code for Issue #27038 in 3.6.0a3.
62+
Patch by Xiang Zhang.
63+
6064
- Issue #12345: Add mathemathcal constant tau to math and cmath. See also
6165
PEP 628.
6266

Modules/posixmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13355,6 +13355,8 @@ INITFUNC(void)
1335513355
Py_DECREF(unicode);
1335613356
}
1335713357
PyModule_AddObject(m, "_have_functions", list);
13358+
13359+
Py_INCREF((PyObject *) &DirEntryType);
1335813360
PyModule_AddObject(m, "DirEntry", (PyObject *)&DirEntryType);
1335913361

1336013362
initialized = 1;

0 commit comments

Comments
 (0)