aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-11-09 11:04:07 -0800
committerGravatar murgatroid99 <mlumish@google.com>2015-11-09 11:04:07 -0800
commit3236607685266e0b7ebfdea78e6fed35ba3de72e (patch)
tree75038c7da6a217053ba7eb9490d1fb8e33d08960 /src
parent1900ca157fc6829852fbe4b04f493b41fbb695fe (diff)
Fixed incorrect type in a malloc in Node extension
Diffstat (limited to 'src')
-rw-r--r--src/node/ext/channel.cc2
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();