mirror of https://github.com/nodejs/node.git
Fix evnet_buf size calculation for V8::AdjustAmountOfExternalAllocatedMemory().
parent
dd1750f573
commit
646829262f
|
@ -26,7 +26,8 @@ using namespace std;
|
|||
static void
|
||||
buf_free (evnet_buf *b)
|
||||
{
|
||||
V8::AdjustAmountOfExternalAllocatedMemory(-b->len);
|
||||
size_t total = sizeof(evnet_buf) + b->len;
|
||||
V8::AdjustAmountOfExternalAllocatedMemory(-total);
|
||||
free(b);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue