isaacs / node-graceful-fs

fs with incremental backoff on EMFILE
ISC License
1.27k stars 147 forks source link

createWriteStream from node-graceful-fs causes a memory leak #248

Open krystianfowler opened 3 months ago

krystianfowler commented 3 months ago

Tested on node v20.9.0

Using createWriteStream from graceful-fs will causes a memory leak. This was found while using the node-fs-extra@11.2.0 package which calls node-graceful-fs directly.

Replacing the graceful-fs createWriteStream with the node native fs.createWriteStream solves the issue.