mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-28 21:13:41 +03:00
Squash a memory leak
This commit is contained in:
parent
f5d427eb53
commit
b57c2ae0e9
|
@ -81,6 +81,7 @@ ImagingRankFilter(Imaging im, int size, int rank)
|
||||||
size * sizeof(type));\
|
size * sizeof(type));\
|
||||||
IMAGING_PIXEL_##type(imOut, x, y) = Rank##type(buf, size2, rank);\
|
IMAGING_PIXEL_##type(imOut, x, y) = Rank##type(buf, size2, rank);\
|
||||||
}\
|
}\
|
||||||
|
free(buf); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
if (im->image8)
|
if (im->image8)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user