File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,6 +213,11 @@ Tools/Demos
213213 if Argument Clinic processes the same symbol multiple times, and it's emitted
214214 at the end of all processing rather than immediately after the first use.
215215
216+ C API
217+ -----
218+
219+ - Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
220+
216221
217222What's New in Python 3.5.0 alpha 3?
218223===================================
Original file line number Diff line number Diff line change @@ -209,8 +209,12 @@ _PyImport_ReleaseLock(void)
209209void
210210_PyImport_ReInitLock (void )
211211{
212- if (import_lock != NULL )
212+ if (import_lock != NULL ) {
213213 import_lock = PyThread_allocate_lock ();
214+ if (import_lock == NULL ) {
215+ Py_FatalError ("PyImport_ReInitLock failed to create a new lock" );
216+ }
217+ }
214218 if (import_lock_level > 1 ) {
215219 /* Forked as a side effect of import */
216220 long me = PyThread_get_thread_ident ();
You can’t perform that action at this time.
0 commit comments