fixup! Fix the payload ownership issue

pull/14883/head
Ara Ayvazyan 7 years ago
parent 4df7438960
commit f76069a593
  1. 6
      include/grpcpp/impl/codegen/server_interface.h

@ -186,7 +186,11 @@ class ServerInterface : public internal::CallHook {
notification_cq_(notification_cq), notification_cq_(notification_cq),
tag_(tag), tag_(tag),
request_(request) { 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 { bool FinalizeResult(void** tag, bool* status) override {

Loading…
Cancel
Save