Skip to content
Snippets Groups Projects
Commit 3bd7ecce authored by Yang Gao's avatar Yang Gao
Browse files

Merge pull request #4758 from vjpai/leakfix

Fix asan error
parents 2bd2b3e4 9de80b25
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ class ClientRequestCreator<ByteBuffer> { ...@@ -112,7 +112,7 @@ class ClientRequestCreator<ByteBuffer> {
public: public:
ClientRequestCreator(ByteBuffer* req, const PayloadConfig& payload_config) { ClientRequestCreator(ByteBuffer* req, const PayloadConfig& payload_config) {
if (payload_config.has_bytebuf_params()) { if (payload_config.has_bytebuf_params()) {
std::unique_ptr<char> buf( std::unique_ptr<char[]> buf(
new char[payload_config.bytebuf_params().req_size()]); new char[payload_config.bytebuf_params().req_size()]);
gpr_slice s = gpr_slice_from_copied_buffer( gpr_slice s = gpr_slice_from_copied_buffer(
buf.get(), payload_config.bytebuf_params().req_size()); buf.get(), payload_config.bytebuf_params().req_size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment