mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-19 12:41:10 +00:00
Do not leak file descriptor
This commit is contained in:
parent
ea5277e7fc
commit
69b590257d
1 changed files with 1 additions and 0 deletions
|
|
@ -282,6 +282,7 @@ class quiet(object):
|
|||
def __exit__(self, *args, **kwargs):
|
||||
os.dup2(self.old, self.stderr_fd)
|
||||
os.close(self.null_fd)
|
||||
os.close(self.old)
|
||||
|
||||
|
||||
def prepare_image(img, format):
|
||||
|
|
|
|||
Loading…
Reference in a new issue