gh-151126: Fix missing PyErr_NoMemory in testinternalcapi.c (#152177)

This commit is contained in:
sobolevn 2026-06-25 12:48:23 +03:00 committed by GitHub
parent 6f9c76d8d8
commit a0093282ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(). */