aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2017-06-23 15:10:18 -0700
committerGravatar murgatroid99 <mlumish@google.com>2017-06-23 15:26:55 -0700
commitbb8b1c9be4ea443cb7c21ed2760e6e7358ea11bc (patch)
tree4850e169e6ce1bb1727ccc074e21852663eed0a1 /src/node
parent869e37346669cf6db6c1f31f0c91bae00531f1c2 (diff)
Node: fix status memory leak, improve tcp_uv read buffer allocation code
Diffstat (limited to 'src/node')
-rw-r--r--src/node/ext/call.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/node/ext/call.cc b/src/node/ext/call.cc
index 9453000ad3..7446c8d03f 100644
--- a/src/node/ext/call.cc
+++ b/src/node/ext/call.cc
@@ -398,7 +398,10 @@ class ClientStatusOp : public Op {
public:
ClientStatusOp() { grpc_metadata_array_init(&metadata_array); }
- ~ClientStatusOp() { grpc_metadata_array_destroy(&metadata_array); }
+ ~ClientStatusOp() {
+ grpc_metadata_array_destroy(&metadata_array);
+ grpc_slice_unref(status_details);
+ }
bool ParseOp(Local<Value> value, grpc_op *out) {
out->data.recv_status_on_client.trailing_metadata = &metadata_array;