Fix asan error caused by mismatch in alloc/dealloc between new[] and

regular delete...
pull/4758/head
vjpai 9 years ago
parent 16affcce96
commit caace811b4
  1. 2
      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());

Loading…
Cancel
Save