Sunday 25 August 2019

Memory leak

My function is following:function delete(file, logger){ fs.unlink(file, (error)=>{ if (error) logger.info({error}) }) } Does this function create memory leak, but shouldn't fs library handle this? I suspect it, but how should I do it otherwise...with callback function?

Submitted August 25, 2019 at 02:32PM by spartan12321

No comments:

Post a Comment