...
This commit is contained in:
parent
564010c7cd
commit
bab4680828
@ -33,7 +33,7 @@ new(PyTypeObject *type, PyObject *args, PyObject UNUSED *kwds) {
|
||||
self->buf = PyMem_Calloc(xnum * ynum, sizeof(Cell));
|
||||
self->continued_map = PyMem_Calloc(ynum, sizeof(bool));
|
||||
self->line = alloc_line();
|
||||
if (self->buf == NULL || self->line == NULL || self->continued_map) {
|
||||
if (self->buf == NULL || self->line == NULL || self->continued_map == NULL) {
|
||||
PyErr_NoMemory();
|
||||
PyMem_Free(self->buf); Py_CLEAR(self->line); PyMem_Free(self->continued_map);
|
||||
Py_CLEAR(self);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user