Use convenience function
This commit is contained in:
parent
e8c0536d57
commit
daae6161b5
|
@ -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…
Reference in New Issue