mirror of
https://github.com/python/cpython.git
synced 2026-06-27 19:36:07 +00:00
gh-151126: Fix missing PyErr_NoMemory in testinternalcapi.c (#152177)
This commit is contained in:
parent
6f9c76d8d8
commit
a0093282ea
1 changed files with 1 additions and 1 deletions
|
|
@ -1919,7 +1919,7 @@ pending_identify(PyObject *self, PyObject *args)
|
|||
|
||||
PyThread_type_lock mutex = PyThread_allocate_lock();
|
||||
if (mutex == NULL) {
|
||||
return NULL;
|
||||
return PyErr_NoMemory();
|
||||
}
|
||||
PyThread_acquire_lock(mutex, WAIT_LOCK);
|
||||
/* It gets released in _pending_identify_callback(). */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue