python-pillow/Pillow — pull request #898 by wiredfool (2014-09-13 05:52:35+00:00)
Title: Jpeg2k Decode/Encode Memory Leak Fix

From @joshware -- Fixes #870.

Promotes decoder->cleanup to a run every time function, not just on truncated images.
Adds encoder->cleanup as well.