aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/impl/codegen/call_op_set.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-12-18 11:40:52 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-12-18 11:40:52 -0800
commitbb303513dce4e78d898035b9f7f5ae11b7b452dd (patch)
tree708cacfd6a93bdfff3fa76e813afe909f3e62fe6 /include/grpcpp/impl/codegen/call_op_set.h
parent00c9c40004d011f01c72d253a530edb3364992bf (diff)
parentd198607457a6f5d47e8c134277ebfe3706f9476b (diff)
Merge master
Diffstat (limited to 'include/grpcpp/impl/codegen/call_op_set.h')
-rw-r--r--include/grpcpp/impl/codegen/call_op_set.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/grpcpp/impl/codegen/call_op_set.h b/include/grpcpp/impl/codegen/call_op_set.h
index ac3ba17bd9..3db9f48bff 100644
--- a/include/grpcpp/impl/codegen/call_op_set.h
+++ b/include/grpcpp/impl/codegen/call_op_set.h
@@ -343,6 +343,9 @@ class CallOpSendMessage {
// We had already registered failed_send_ earlier. No need to do it again.
}
send_buf_.Clear();
+ // The contents of the SendMessage value that was previously set
+ // has had its references stolen by core's operations
+ interceptor_methods->SetSendMessage(nullptr);
}
void SetHijackingState(InterceptorBatchMethodsImpl* interceptor_methods) {