https://github.com/python/cpython/commit/b43507911b7f1f3e65d9d3f6ad4917b11fadd63f commit: b43507911b7f1f3e65d9d3f6ad4917b11fadd63f branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: sobolevn <[email protected]> date: 2026-06-25T13:19:26+03:00 summary:
[3.13] gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177) (#152181) gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177) (cherry picked from commit a0093282ea87e112e3758e6b3eadb8b6b9770569) Co-authored-by: sobolevn <[email protected]> files: M Modules/_testinternalcapi.c diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index f9984da3671c8e..c26785fe33fae0 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -1156,7 +1156,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]
