mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Added missing free when xx fail
This commit is contained in:
parent
696924f5ac
commit
2f6a4d5f1a
|
@ -459,6 +459,7 @@ polygon_generic(Imaging im, int n, Edge *e, int ink, int eofill,
|
|||
/* Process the edge table with a scan line searching for intersections */
|
||||
float* xx = malloc(sizeof(float) * edge_count * 2);
|
||||
if (!xx) {
|
||||
free(edge_table)
|
||||
return -1;
|
||||
}
|
||||
for (; ymin <= ymax; ymin++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user