mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-13 09:33:21 +03:00
free before return, not after
This commit is contained in:
parent
c25cd96b71
commit
dc7ee29c46
|
@ -2267,8 +2267,8 @@ _font_getmask(ImagingFontObject* self, PyObject* args)
|
||||||
|
|
||||||
im = ImagingNew(self->bitmap->mode, textwidth(self, text), self->ysize);
|
im = ImagingNew(self->bitmap->mode, textwidth(self, text), self->ysize);
|
||||||
if (!im) {
|
if (!im) {
|
||||||
return NULL;
|
|
||||||
free(text);
|
free(text);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
b = 0;
|
b = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user