Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…les.
  • Loading branch information...
commit 30fc49a7ca0d030c7855f31ed44395903fa6abdd 1 parent f2a4452
John Hensley authored timgraham committed
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()
Please sign in to comment.
Something went wrong with that request. Please try again.