-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Closed
Labels
node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.
Description
- Version: 10.5.0 (maybe 10.x.x nodejs has this problem)
- Platform: macOs 10.13
- Subsystem:
I found that when writing nodejs addon to produce Buffer, memory leak will happen.
My test code is : https://github.com/caijw/test/tree/master/bufferLeak
Run the index.js in the bufferLeak folder. I found that the memory used in my pc grows and won't decrease.
before running:

after generate 250 buffers object:
and it keeps on consuming my pc's memory util i shut down this program.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.
