aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-06-05 09:36:52 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-06-05 09:36:52 -0700
commit2f4a49c8d37be8468a9e2a37a33f187dc952e954 (patch)
tree16f0360766f5455849d552e3eabfbbb0dc68f9d5 /src/cpp/server
parent928ec8ee51faf0e57fbc084d6da04d1f85704e07 (diff)
Fix memory leak
Diffstat (limited to 'src/cpp/server')
-rw-r--r--src/cpp/server/server.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpp/server/server.cc b/src/cpp/server/server.cc
index 680f96061c..ed1bb2a362 100644
--- a/src/cpp/server/server.cc
+++ b/src/cpp/server/server.cc
@@ -317,6 +317,7 @@ bool Server::BaseAsyncRequest::FinalizeResult(void** tag, bool* status) {
initial_metadata_array_.metadata[i].value_length)));
}
}
+ grpc_metadata_array_destroy(&initial_metadata_array_);
context_->call_ = call_;
context_->cq_ = call_cq_;
Call call(call_, server_, call_cq_, server_->max_message_size_);