Added missing free when xx fail

This commit is contained in:
Terseus 2014-04-04 18:57:08 +02:00
parent 696924f5ac
commit 2f6a4d5f1a

View File

@ -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++) {