diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index dba53bc4273ffc3adcdfc94c3c136431544c69eb..342ea4620332fd8efaece7d4e0915a61a4768d1d 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -610,10 +610,12 @@ class CallOpSet : public CallOpSetInterface, this->Op5::FinishOp(status); this->Op6::FinishOp(status); *tag = return_tag_; - g_core_codegen_interface->grpc_call_unref(call_); + // TODO(vjpai): Remove the reference to collection_ once the idea of // bypassing the code generator is forbidden. It is already deprecated collection_.reset(); + + g_core_codegen_interface->grpc_call_unref(call_); return true; }