Memory leak
Opened this issue · 1 comments
ortexx commented
I faced a memory leak in my app. After some inspection i found out that it is due to this library.
I just use detectFile method from time to time. After removing that code there is no leak anymore.
I tried with node 10.x, 12.x
Maybe it is somehow related to this.
abdes commented
Looking at the code, this is possible... This project was the first one really attempting to provide a solution to bringing libmagic long history to javascript. I have also started using this module, but then decided to take a different approach with no native code anymore: enter Emscripten, embind and web assembly.
You can check it out at: https://www.npmjs.com/package/@npcz/magic