Pillow
Pillow copied to clipboard
Fix memory leaks related to text features
Changes proposed in this pull request:
- Add
Py_DECREF
calls forseq
andbytes
. Fixes #6321. - Remove duplicate
PyUnicode_Check(item)
call. -
PySequence_Size(seq)
can be changed to fasterPySequence_Fast_GET_SIZE(seq)
becauseseq
was returned fromPySequence_Fast
.