mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix NULL check in test_type_from_ephemeral_spec in_testcapimodule.c (GH-92863)
This commit is contained in:
parent
19a4252459
commit
524f03c08c
1 changed files with 1 additions and 1 deletions
|
@ -1221,7 +1221,7 @@ test_type_from_ephemeral_spec(PyObject *self, PyObject *Py_UNUSED(ignored))
|
|||
memcpy(name, NAME, sizeof(NAME));
|
||||
|
||||
doc = PyMem_New(char, sizeof(DOC));
|
||||
if (name == NULL) {
|
||||
if (doc == NULL) {
|
||||
PyErr_NoMemory();
|
||||
goto finally;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue