aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/impl/codegen/call_op_set.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2019-01-07 14:12:03 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2019-01-07 14:12:03 -0800
commit34d77aae5ec26063e2eb5dc4b47ba4dce90c7136 (patch)
treeeb7c0dfe550e62602120d6334c94a554a52c74d8 /include/grpcpp/impl/codegen/call_op_set.h
parentdd067fd39034d42bf9a1799d09c1c2a7daedc61a (diff)
Always nullify serializer to free memory
Diffstat (limited to 'include/grpcpp/impl/codegen/call_op_set.h')
-rw-r--r--include/grpcpp/impl/codegen/call_op_set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/grpcpp/impl/codegen/call_op_set.h b/include/grpcpp/impl/codegen/call_op_set.h
index 2c34082ebb..880c62344b 100644
--- a/include/grpcpp/impl/codegen/call_op_set.h
+++ b/include/grpcpp/impl/codegen/call_op_set.h
@@ -324,8 +324,8 @@ class CallOpSendMessage {
}
if (msg_ != nullptr) {
GPR_CODEGEN_ASSERT(serializer_(msg_).ok());
- serializer_ = nullptr;
}
+ serializer_ = nullptr;
grpc_op* op = &ops[(*nops)++];
op->op = GRPC_OP_SEND_MESSAGE;
op->flags = write_options_.flags();