hgext/largefiles/localstore.py
changeset 19002 5083baa6cbf8
parent 19000 eaf146e811a4
child 19003 ad993cb7bbb1
--- a/hgext/largefiles/localstore.py	Mon Apr 15 23:43:44 2013 +0200
+++ b/hgext/largefiles/localstore.py	Mon Apr 15 23:43:50 2013 +0200
@@ -45,6 +45,7 @@
             return lfutil.copyandhash(fd, tmpfile)
         finally:
             fd.close()
+            tmpfile.close()
 
     def _verifyfile(self, cctx, cset, contents, standin, verified):
         filename = lfutil.splitstandin(standin)