aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Arjun Roy <arjunroy@google.com>2018-11-07 18:08:51 -0800
committerGravatar Arjun Roy <arjunroy@google.com>2018-11-07 18:08:51 -0800
commitbc3d6d21b767cf360f98f540111e434234b5eda2 (patch)
treef1684596f100cdb36f99832df4fdcada298dbcac
parent843c8d9e75acca671090df8d7f95d4eb973c88ff (diff)
Set call_ member variable to null after freeing.
-rw-r--r--src/cpp/server/server_cc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpp/server/server_cc.cc b/src/cpp/server/server_cc.cc
index 774c33b31a..94dcce9812 100644
--- a/src/cpp/server/server_cc.cc
+++ b/src/cpp/server/server_cc.cc
@@ -202,6 +202,7 @@ class Server::SyncRequest final : public internal::CompletionQueueTag {
void PostShutdownCleanup() {
if (call_) {
grpc_call_unref(call_);
+ call_ = nullptr;
}
if (cq_) {
grpc_completion_queue_destroy(cq_);