mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Use convenience function
This commit is contained in:
parent
e8c0536d57
commit
daae6161b5
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ asdl_seq_new(int size)
|
|||
|
||||
seq = (asdl_seq *)PyObject_Malloc(n);
|
||||
if (!seq) {
|
||||
PyErr_SetString(PyExc_MemoryError, "no memory");
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
memset(seq, 0, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue