Browse Source

Fix evnet_buf size calculation for V8::AdjustAmountOfExternalAllocatedMemory().

v0.7.4-release
Ryan 16 years ago
parent
commit
646829262f
  1. 3
      src/node.cc

3
src/node.cc

@ -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…
Cancel
Save