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: