Skip to content

Commit

Permalink
Test suggested fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 21, 2023
1 parent 220323a commit f513de6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,8 @@ def _load_libtiff(self):
self.fp.seek(0)
# 4 bytes, otherwise the trace might error out
n, err = decoder.decode(b"fpfp")
# fp should be closed after call to decode
fp = None
else:
# we have something else.
logger.debug("don't have fileno or getvalue. just reading")
Expand Down

0 comments on commit f513de6

Please sign in to comment.