Handle failed allocation in list adaptation

This commit is contained in:
Daniele Varrazzo 2019-01-21 01:32:53 +00:00
parent 7a3bce8fc3
commit e67028f4bc

View File

@ -90,7 +90,9 @@ list_quote(listObject *self)
* array[array[]] is */
all_nulls = 0;
Py_CLEAR(qs[i]);
qs[i] = Bytes_FromString("ARRAY[]");
if (!(qs[i] = Bytes_FromString("ARRAY[]"))) {
goto exit;
}
}
}
else {