diff --git a/src/cpp/server/server.cc b/src/cpp/server/server.cc index e66b4ed2d8b..80eb488b41d 100644 --- a/src/cpp/server/server.cc +++ b/src/cpp/server/server.cc @@ -67,6 +67,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;