aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2016-01-27 09:45:29 -0800
committerGravatar vjpai <vpai@google.com>2016-01-27 09:45:29 -0800
commita24e9d774caf776e5d0182a779d39ba584c7387a (patch)
treebff0e3663580fbf223ab0c2a3438b3922b6e9b83 /test/cpp/qps
parent17e630af30389dd2855740f8fecf5e09488c3d96 (diff)
Sanity checks and asan fix
Diffstat (limited to 'test/cpp/qps')
-rw-r--r--test/cpp/qps/server_async.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc
index d530dac86b..cd8d546c28 100644
--- a/test/cpp/qps/server_async.cc
+++ b/test/cpp/qps/server_async.cc
@@ -373,7 +373,7 @@ static Status ProcessGenericRPC(const PayloadConfig &payload_config,
const ByteBuffer *request,
ByteBuffer *response) {
int resp_size = payload_config.bytebuf_params().resp_size();
- std::unique_ptr<char> buf(new char[resp_size]);
+ std::unique_ptr<char[]> buf(new char[resp_size]);
gpr_slice s = gpr_slice_from_copied_buffer(buf.get(), resp_size);
Slice slice(s, Slice::STEAL_REF);
*response = ByteBuffer(&slice, 1);