From 728ccdc4b620db0049b789578cb1548955ccb63b Mon Sep 17 00:00:00 2001 From: p0123n Date: Fri, 14 Apr 2017 00:52:21 +0300 Subject: [PATCH] Update Image.py Trying to save some memory when many pictures are opened at a time. --- PIL/Image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PIL/Image.py b/PIL/Image.py index 22389629e..577c074b8 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -2444,6 +2444,7 @@ def open(fp, mode="r"): if im: im._exclusive_fp = exclusive_fp + fp.close() return im if exclusive_fp: