Commit d1dc2637 authored by Jim Fulton's avatar Jim Fulton

Close input file nefore renaming or removing it.

parent f8775695
...@@ -210,6 +210,7 @@ class ClientCache(object): ...@@ -210,6 +210,7 @@ class ClientCache(object):
try: try:
self._initfile(fsize) self._initfile(fsize)
except: except:
self.f.close()
if not path: if not path:
raise # unrecoverable temp file error :( raise # unrecoverable temp file error :(
badpath = path+'.bad' badpath = path+'.bad'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment