Closed
Description
Steps to reproduce:
- Run this piece of code in your favorite REPL.
from fs.memoryfs import MemoryFS
mem_fs = MemoryFS()
with open('large_binary_file', 'rb') as f:
mem_fs.upload('/large_binary_file', f)
mem_fs.close()
- Watch python process before and after running this script.
- The memory is there and the files are not removed.
- Run
del mem_fs
and it immediately claims back the memory.