aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-05-29 07:56:00 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-05-29 07:56:00 -0700
commit131b3ed3cb12c91ef286f8ef1bde1ebe8b851755 (patch)
tree2ba5d4b694d35a6a68be8f96096ba810016bf172 /src/cpp/server
parent7851aa8db31f5813c44ebcc094fc332340252249 (diff)
parent017912dac9a212a91b0ded2b610412980fa5e4d2 (diff)
Merge branch 'demon-on-wheels' into we-dont-need-no-cv
Diffstat (limited to 'src/cpp/server')
-rw-r--r--src/cpp/server/server.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpp/server/server.cc b/src/cpp/server/server.cc
index a0670a07cc..dbd88c5b8c 100644
--- a/src/cpp/server/server.cc
+++ b/src/cpp/server/server.cc
@@ -75,6 +75,10 @@ class Server::SyncRequest GRPC_FINAL : public CompletionQueueTag {
grpc_metadata_array_init(&request_metadata_);
}
+ ~SyncRequest() {
+ grpc_metadata_array_destroy(&request_metadata_);
+ }
+
static SyncRequest* Wait(CompletionQueue* cq, bool* ok) {
void* tag = nullptr;
*ok = false;