Skip to content

Commit

Permalink
handle double close
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 4, 2019
1 parent c7f546d commit 4a2bece
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/memoryfs.py
Expand Up @@ -342,7 +342,8 @@ def _get_dir_entry(self, dir_path):

def close(self):
# type: () -> None
del self.root
if not self._closed:
del self.root
return super(MemoryFS, self).close()

def getinfo(self, path, namespaces=None):
Expand Down

0 comments on commit 4a2bece

Please sign in to comment.