Skip to content

Commit a009328

Browse files
authored
gh-151126: Fix missing PyErr_NoMemory in testinternalcapi.c (#152177)
1 parent 6f9c76d commit a009328

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
@@ -1919,7 +1919,7 @@ pending_identify(PyObject *self, PyObject *args)
19191919

19201920
PyThread_type_lock mutex = PyThread_allocate_lock();
19211921
if (mutex == NULL) {
1922-
return NULL;
1922+
return PyErr_NoMemory();
19231923
}
19241924
PyThread_acquire_lock(mutex, WAIT_LOCK);
19251925
/* It gets released in _pending_identify_callback(). */

0 commit comments

Comments
 (0)