Commit f49f0128 by btimby

If the wrapped_fs reference is not removed, the SubFS will create a cycle with…

If the wrapped_fs reference is not removed, the SubFS will create a cycle with it, preventing both from being garbage collected.
parent e748327e
......@@ -432,6 +432,7 @@ class WrapFS(FS):
if not self.closed:
self.wrapped_fs.close()
super(WrapFS,self).close()
self.wrapped_fs = None
def wrap_fs_methods(decorator, cls=None, exclude=[]):
......
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