diff options
author | Sree Kuchibhotla <sreek@google.com> | 2016-07-14 21:23:22 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2016-07-14 21:24:07 -0700 |
commit | 69b74784fe84ca8d290eb4303ec797e9ddd190e7 (patch) | |
tree | 43de7a429970577002d655a98defa93234a98f0d /include/grpc++ | |
parent | 13d3e3b7e2538025148dd08956765eab516b2f0b (diff) |
Reduce the number of unnecessary allocations
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/impl/codegen/async_unary_call.h | 2 |
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()); |