diff options
author | 2016-01-18 22:15:55 -0800 | |
---|---|---|
committer | 2016-01-18 22:15:55 -0800 | |
commit | caace811b496d27935632f3d1f86273252e876c4 (patch) | |
tree | 6b8648dc9016f985eff3a9273222668d3b2446f8 /test | |
parent | 16affcce96eb9dc467eed62f521ab3e62737726e (diff) |
Fix asan error caused by mismatch in alloc/dealloc between new[] and
regular delete...
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/qps/client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/client.h b/test/cpp/qps/client.h index 15cfd7a2d7..97487fd0b2 100644 --- a/test/cpp/qps/client.h +++ b/test/cpp/qps/client.h @@ -112,7 +112,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()); |