aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive
diff options
context:
space:
mode:
Diffstat (limited to 'FuseArchive')
-rw-r--r--FuseArchive/ChunkFile.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/FuseArchive/ChunkFile.py b/FuseArchive/ChunkFile.py
index c33ae73..8e4f2eb 100644
--- a/FuseArchive/ChunkFile.py
+++ b/FuseArchive/ChunkFile.py
@@ -407,10 +407,17 @@ class ChunkFile(object):
# There is some kind of mem leak, ChunkFile objects end up in a
# tuple of [obj,True] for every object written and never get freed,
- # maybe a fuse bug?
- del self.chunks
- del self.chunk
- del self.original_chunks
+ # maybe a fuse bug? Just trying to minimize the damage here by
+ # freeing the big chunks of memory.
+ #
+ # Note that you can see this same problem in xmp.py, if you run it
+ # in pdb then use objgraph to see the top objects XmpFile will be
+ # near the top with this odd reference in a tuple that is owned by
+ # nothing
+ #del self.chunks
+ #del self.chunk
+ #del self.original_chunks
+ self.__dict__ = {}
def _fflush(self):
if self.wr and self.modified: