mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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);
|
||||
if (!im) {
|
||||
return NULL;
|
||||
free(text);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
b = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user