aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/impl/codegen/server_interface.h
diff options
context:
space:
mode:
authorGravatar Ara Ayvazyan <Aivazyan@microsoft.com>2018-03-30 10:44:43 -0700
committerGravatar Ara Ayvazyan <Aivazyan@microsoft.com>2018-03-30 10:44:43 -0700
commitf76069a593884b1f580bd8568678c67ce860ee45 (patch)
tree1546bc4dda8bd82fd2f023b0da8414beb18e3323 /include/grpcpp/impl/codegen/server_interface.h
parent4df7438960bc900e9f262b66aa7a06b7fe316568 (diff)
fixup! Fix the payload ownership issue
Diffstat (limited to 'include/grpcpp/impl/codegen/server_interface.h')
-rw-r--r--include/grpcpp/impl/codegen/server_interface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpcpp/impl/codegen/server_interface.h b/include/grpcpp/impl/codegen/server_interface.h
index 1149aa6593..70c90681f0 100644
--- a/include/grpcpp/impl/codegen/server_interface.h
+++ b/include/grpcpp/impl/codegen/server_interface.h
@@ -186,7 +186,11 @@ class ServerInterface : public internal::CallHook {
notification_cq_(notification_cq),
tag_(tag),
request_(request) {
- IssueRequest(registered_method, payload_.bbuf_ptr(), notification_cq);
+ IssueRequest(registered_method, payload_.c_buffer_ptr(), notification_cq);
+ }
+
+ ~PayloadAsyncRequest() {
+ payload_.Release(); // We do not own the payload_
}
bool FinalizeResult(void** tag, bool* status) override {