diff options
author | Tim Emiola <tbetbetbe@users.noreply.github.com> | 2015-11-13 09:31:15 -0800 |
---|---|---|
committer | Tim Emiola <tbetbetbe@users.noreply.github.com> | 2015-11-13 09:31:15 -0800 |
commit | e695941aeb6c1835020f6e8bd526034fa4354763 (patch) | |
tree | c0c861cb9cfe4bd691e97230a14ff9537d9fc991 | |
parent | 06029a03c5763b622d8bfa5095e760d2dd8c96de (diff) | |
parent | 3236607685266e0b7ebfdea78e6fed35ba3de72e (diff) |
Merge pull request #4091 from murgatroid99/node_channel_args_malloc
Fixed incorrect type in a malloc in Node extension
-rw-r--r-- | src/node/ext/channel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/ext/channel.cc b/src/node/ext/channel.cc index 584a0cf8ab..c11734d737 100644 --- a/src/node/ext/channel.cc +++ b/src/node/ext/channel.cc @@ -82,7 +82,7 @@ bool ParseChannelArgs(Local<Value> args_val, return false; } grpc_channel_args *channel_args = reinterpret_cast<grpc_channel_args*>( - malloc(sizeof(channel_args))); + malloc(sizeof(grpc_channel_args))); *channel_args_ptr = channel_args; Local<Object> args_hash = Nan::To<Object>(args_val).ToLocalChecked(); Local<Array> keys = Nan::GetOwnPropertyNames(args_hash).ToLocalChecked(); |