diff --git a/src/node_buffer.cc b/src/node_buffer.cc index ae59b63f14..5c4e3c1bfe 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -101,6 +101,8 @@ Buffer* Buffer::New(char* data, size_t len) { Buffer *buffer = ObjectWrap::Unwrap(obj); memcpy(buffer->data_, data, len); + + return buffer; }