mmmagic icon indicating copy to clipboard operation
mmmagic copied to clipboard

Memory leak

Open ortexx opened this issue 5 years ago • 1 comments

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.

ortexx avatar Nov 26 '19 06:11 ortexx

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

abdes avatar Jan 01 '20 21:01 abdes