aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2016-01-19 13:37:33 -0800
committerGravatar vjpai <vpai@google.com>2016-01-19 13:37:33 -0800
commitc833c82c0884c55b432ba7f077986cf0fd048085 (patch)
tree6c509696c6d7f82dd36f8ed72a19267e0ad3ba9a /test/cpp/qps
parent861eb9f13a1437542a381e466f6e5796dafa0941 (diff)
parentc0a41f61ce661d204821a501afe4ce35077d2ae0 (diff)
Merge branch 'master' into corelimit2
Diffstat (limited to 'test/cpp/qps')
-rw-r--r--test/cpp/qps/client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/client.h b/test/cpp/qps/client.h
index 00238c5b31..2cb4e094c0 100644
--- a/test/cpp/qps/client.h
+++ b/test/cpp/qps/client.h
@@ -116,7 +116,7 @@ class ClientRequestCreator<ByteBuffer> {
public:
ClientRequestCreator(ByteBuffer* req, const PayloadConfig& payload_config) {
if (payload_config.has_bytebuf_params()) {
- std::unique_ptr<char> buf(
+ std::unique_ptr<char[]> buf(
new char[payload_config.bytebuf_params().req_size()]);
gpr_slice s = gpr_slice_from_copied_buffer(
buf.get(), payload_config.bytebuf_params().req_size());