diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-05 08:45:45 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-05 08:45:45 -0700 |
commit | 928ec8ee51faf0e57fbc084d6da04d1f85704e07 (patch) | |
tree | 6754af9f738ce83771abdf92842ccfaf67b268d4 /src/cpp/server | |
parent | 8f789fd4b99cebeecbbb683d37278b508d5ec7a7 (diff) |
Fix memory leak
Diffstat (limited to 'src/cpp/server')
-rw-r--r-- | src/cpp/server/server.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpp/server/server.cc b/src/cpp/server/server.cc index 824b03e01e..680f96061c 100644 --- a/src/cpp/server/server.cc +++ b/src/cpp/server/server.cc @@ -129,6 +129,7 @@ class Server::SyncRequest GRPC_FINAL : public CompletionQueueTag { ctx_.BeginCompletionOp(&call_); method_->handler()->RunHandler(MethodHandler::HandlerParameter( &call_, &ctx_, request_payload_, call_.max_message_size())); + request_payload_ = nullptr; void* ignored_tag; bool ignored_ok; cq_.Shutdown(); |