https://github.com/python/cpython/commit/a0093282ea87e112e3758e6b3eadb8b6b9770569
commit: a0093282ea87e112e3758e6b3eadb8b6b9770569
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-06-25T09:48:23Z
summary:
gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (#152177)
files:
M Modules/_testinternalcapi.c
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c
index d0d1f1f1bc8e53..e3de9006d5a427 100644
--- a/Modules/_testinternalcapi.c
+++ b/Modules/_testinternalcapi.c
@@ -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(). */
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]