aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-07-19 16:04:06 -0700
committerGravatar GitHub <noreply@github.com>2016-07-19 16:04:06 -0700
commit8c2fab05f7f09cad0c1a543a4546bd898ec67b53 (patch)
tree74c72e43171bdf5880279811897070dea902db82 /include
parent8bcf6c1dcd8c21b44e78ddd6ef5f1177b17423f6 (diff)
parent69b74784fe84ca8d290eb4303ec797e9ddd190e7 (diff)
Merge pull request #7399 from sreecha/poll_alloc_fix
Reduce the number of unnecessary allocations
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/impl/codegen/async_unary_call.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/grpc++/impl/codegen/async_unary_call.h b/include/grpc++/impl/codegen/async_unary_call.h
index 47ac5bee92..05681e2242 100644
--- a/include/grpc++/impl/codegen/async_unary_call.h
+++ b/include/grpc++/impl/codegen/async_unary_call.h
@@ -65,7 +65,7 @@ class ClientAsyncResponseReader GRPC_FINAL
const W& request)
: context_(context),
call_(channel->CreateCall(method, context, cq)),
- collection_(new CallOpSetCollection) {
+ collection_(std::make_shared<CallOpSetCollection>()) {
collection_->init_buf_.SetCollection(collection_);
collection_->init_buf_.SendInitialMetadata(
context->send_initial_metadata_, context->initial_metadata_flags());