mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
return ImagingError_MemoryError
This commit is contained in:
parent
7673cb7549
commit
d1e706d756
|
@ -3182,7 +3182,7 @@ _draw_polygon(ImagingDrawObject* self, PyObject* args)
|
|||
ixy = (int*) calloc(n, 2 * sizeof(int));
|
||||
if (ixy == NULL) {
|
||||
free(xy);
|
||||
return NULL;
|
||||
return ImagingError_MemoryError();
|
||||
}
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user