File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ Library
3232- Issue #23365: Fixed possible integer overflow in
3333 itertools.combinations_with_replacement.
3434
35+ C API
36+ -----
37+
38+ - Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
39+
3540
3641What's New in Python 3.3.6?
3742===========================
Original file line number Diff line number Diff line change @@ -199,8 +199,12 @@ _PyImport_ReleaseLock(void)
199199void
200200_PyImport_ReInitLock (void )
201201{
202- if (import_lock != NULL )
202+ if (import_lock != NULL ) {
203203 import_lock = PyThread_allocate_lock ();
204+ if (import_lock == NULL ) {
205+ Py_FatalError ("PyImport_ReInitLock failed to create a new lock" );
206+ }
207+ }
204208 if (import_lock_level > 1 ) {
205209 /* Forked as a side effect of import */
206210 long me = PyThread_get_thread_ident ();
You can’t perform that action at this time.
0 commit comments