mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +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));
|
ixy = (int*) calloc(n, 2 * sizeof(int));
|
||||||
if (ixy == NULL) {
|
if (ixy == NULL) {
|
||||||
free(xy);
|
free(xy);
|
||||||
return NULL;
|
return ImagingError_MemoryError();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user