Skip to content

Commit ab694a8

Browse files
[3.14] gh-151126: Fix missing PyErr_NoMemory in testinternalcapi.c (GH-152177) (#152180)
gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177) (cherry picked from commit a009328) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 6e7de86 commit ab694a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_testinternalcapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ pending_identify(PyObject *self, PyObject *args)
13571357

13581358
PyThread_type_lock mutex = PyThread_allocate_lock();
13591359
if (mutex == NULL) {
1360-
return NULL;
1360+
return PyErr_NoMemory();
13611361
}
13621362
PyThread_acquire_lock(mutex, WAIT_LOCK);
13631363
/* It gets released in _pending_identify_callback(). */

0 commit comments

Comments
 (0)