Browse files

Fixed #21057 -- Prevented FileSystemStorage from leaving temporary fi…

…les.
  • Loading branch information...
1 parent f2a4452 commit 30fc49a7ca0d030c7855f31ed44395903fa6abdd John Hensley committed with timgraham Sep 6, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/core/files/storage.py
View
1 django/core/files/storage.py
@@ -215,6 +215,7 @@ def _save(self, name, content):
_file = os.fdopen(fd, mode)
_file.write(chunk)
finally:
+ content.close()
locks.unlock(fd)
if _file is not None:
_file.close()

0 comments on commit 30fc49a

Please sign in to comment.