mercurial/revlog.py
branchstable
changeset 15407 ee112eb69d2a
parent 15057 774da7121fc9
child 15827 1dacf7672556
--- 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]