diff mercurial/revlog.py @ 15407:ee112eb69d2a stable

misc: adding missing file close() calls Spotted by Victor Stinner <victor.stinner@haypocalc.com>
author Matt Mackall <mpm@selenic.com>
date Thu, 03 Nov 2011 11:24:55 -0500
parents 774da7121fc9
children 1dacf7672556
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Nov 01 15:37:00 2011 -0500
+++ b/mercurial/revlog.py	Thu Nov 03 11:24:55 2011 -0500
@@ -800,6 +800,7 @@
         readahead = max(65536, length)
         df.seek(offset)
         d = df.read(readahead)
+        df.close()
         self._addchunk(offset, d)
         if readahead > length:
             return d[:length]