fd leak when using read_only mode
Created originally on Bitbucket by wangqr
I’m using the read-only example here. I found that the file is not properly closed after reading the content. After reading the source, I guess maybe it is for the lazy loading.
Is there a proper way to close the file after reading when using the read-only mode, other than deleting ws
, wb
and force a garbage collection?